BearFramework\App\CacheItem

BearFramework\App\CacheItem {

    
/* Properties */
    
public string|null $key
    
public int|null $ttl
    
public mixed $value

    
/* Methods */
    
public __construct void )
    public array 
toArray void )
    public 
string toJSON void )

}
Properties
public string|null $key
The key of the cache item.
public int|null $ttl
Time in seconds to stay in the cache.
public mixed $value
The value of the cache item.
Methods
public __construct ( void )
public array toArray ( void )
Returns the object data converted as an array.
public string toJSON ( void )
Returns the object data converted as JSON.
Details
Location: ~/src/App/CacheItem.php
The information on this page is created for version 1.1 of Bear Framework and may not be applicable for other versions of the framework.