Skip to content

Latest commit

 

History

History
110 lines (48 loc) · 1.63 KB

JSMF-Cache-Memcached.md

File metadata and controls

110 lines (48 loc) · 1.63 KB

JSMF\Cache\Memcached

Methods

connect

Boolean JSMF\Cache\CacheInterface::connect()

connects to server if not already connected, returns status

get

Mixed JSMF\Cache\CacheInterface::get(String $key, Mixed $default)

return item from cache

Arguments

  • $key String
  • $default Mixed

set

Boolean JSMF\Cache\CacheInterface::set(String $key, Mixed $value, Int|null $expire)

stores value in cache

Arguments

  • $key String
  • $value Mixed
  • $expire Int|null

has

Boolean JSMF\Cache\CacheInterface::has(String $key)

checks if cache key exists

Arguments

  • $key String

delete

Boolean JSMF\Cache\CacheInterface::delete(String $key)

deletes item from cache

Arguments

  • $key String