|
Prismic.io PHP kit
3.0.0
|
Public Member Functions | |
| has ($key) | |
| get ($key) | |
| set ($key, $value, $ttl=null) | |
| delete ($key) | |
| clear () | |
A cache implementation that doesn't cache anything; to be passed as the $cache parameter of Prismicget when you don't want any caching. This documentation right here introduces what the functions are supposed to do if there is a cache involved, even though in this class in particular, they all simply do nothing and return false.
| Prismic\Cache\NoCache::clear | ( | ) |
Clears the whole cache
| Prismic\Cache\NoCache::delete | ( | $key | ) |
Deletes a cache entry, from its key
| string | $key | the key of the cache entry |
| Prismic\Cache\NoCache::get | ( | $key | ) |
Returns the value of a cache entry from its key
| string | $key | the key of the cache entry |
| Prismic\Cache\NoCache::has | ( | $key | ) |
Tests whether the cache has a value for a particular key
| string | $key | the key of the cache entry |
| Prismic\Cache\NoCache::set | ( | $key, | |
| $value, | |||
$ttl = null |
|||
| ) |
Stores a new cache entry
| string | $key | the key of the cache entry |
| \stdClass | $value | the value of the entry |
| int | $ttl | the time until this cache entry expires |
1.8.12