프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$storage | array | The array of stored values. | |
$ttl | array | Time to live of each stored value. |
메소드 | 설명 | |
---|---|---|
get ( string $key ) : mixed | Retrieve an item from the cache by key. | |
has ( string $key ) : boolean | Determine if an item exists in the cache. This method will also check if the ttl of the given cache key has been expired and will free the memory if so. | |
put ( string $key, mixed $value, float $minutes ) : void | Store an item in the cache for a given number of minutes. |
메소드 | 설명 | |
---|---|---|
time ( ) : integer | Return the current time in order to check ttl. |