1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-13 08:34:19 +02:00

code refactoring

This commit is contained in:
Awilum
2018-03-22 23:22:15 +03:00
parent 7cf1171615
commit 47cf7f5378

View File

@@ -18,30 +18,35 @@ class Cache
* @var object
*/
protected static $instance = null;
/**
* Unique cache key
*
* @var string Cache key.
*/
protected static $key;
/**
* Lifetime
*
* @var int Lifetime.
*/
protected static $lifetime;
/**
* Current time
*
* @var int Current time.
*/
protected static $now;
/**
* Cache Driver
*
* @var DoctrineCache
*/
protected static $driver;
/**
* Protected clone method to enforce singleton behavior.
*
@@ -182,7 +187,7 @@ class Cache
static::$driver->save($id, $data, $lifetime);
}
}
/**
* Clear Cache
*/