- Class name: Memcached
- Namespace: JSMF\Cache
- This class implements: JSMF\Cache\CacheInterface
Boolean JSMF\Cache\CacheInterface::connect()
connects to server if not already connected, returns status
- Visibility: public
- This method is static.
- This method is defined by JSMF\Cache\CacheInterface
Mixed JSMF\Cache\CacheInterface::get(String $key, Mixed $default)
return item from cache
- Visibility: public
- This method is static.
- This method is defined by JSMF\Cache\CacheInterface
- $key String
- $default Mixed
Boolean JSMF\Cache\CacheInterface::set(String $key, Mixed $value, Int|null $expire)
stores value in cache
- Visibility: public
- This method is static.
- This method is defined by JSMF\Cache\CacheInterface
- $key String
- $value Mixed
- $expire Int|null
Boolean JSMF\Cache\CacheInterface::has(String $key)
checks if cache key exists
- Visibility: public
- This method is static.
- This method is defined by JSMF\Cache\CacheInterface
- $key String
Boolean JSMF\Cache\CacheInterface::delete(String $key)
deletes item from cache
- Visibility: public
- This method is static.
- This method is defined by JSMF\Cache\CacheInterface
- $key String