Bluz\Proxy\Cache

Proxy to Cache

Example of usage
use Bluz\Proxy\Cache;

if (!$result = Cache::get('some unique id')) {
$result = 2*2;
Cache::set('some unique id', $result);
}

Synopsis

class Cache {
  • // constants
  • const TTL_NO_EXPIRY = 0;
  • // members
  • protected static array $pools = ;
  • // methods
  • protected static Instance|false initInstance()
  • public static Instance|false getAdapter()
  • public static mixed get()
  • public static bool set()
  • public static string prepare()
  • public static bool clearTags()
  • // Inherited methods from Singleton
  • public static Cache getInstance()
}

Hierarchy

Constants

Name Value
TTL_NO_EXPIRY 0

Members

protected

Methods

protected

public

Inherited from Bluz\Proxy\ProxyTrait

public

Inherited from Bluz\Common\Singleton

public

History