--- /dev/null
+<?php
+
+namespace Cubist\Util;
+
+use Cubist\Util\Files\Files;
+use Illuminate\Cache\FileStore;
+use Illuminate\Cache\Repository;
+use Illuminate\Filesystem\Filesystem;
+
+class Cache
+{
+ /**
+ * @var Repository
+ */
+ protected static $_repository = null;
+
+ /**
+ * @return Repository
+ */
+ public static function getRepository()
+ {
+ if (null === static::$_repository) {
+ $filestore = new FileStore(
+ new Filesystem(),
+ Files::mkdir(sys_get_temp_dir() . '/cubist')
+ );
+
+ static::$_repository = new Repository($filestore);
+
+ }
+ return static::$_repository;
+ }
+}
\ No newline at end of file