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
  • private static array $pools = ;
  • // methods
  • private static Instance|false initInstance()
  • public static Instance|false getAdapter()
  • public static mixed get()
  • public static bool set()
  • public static string prepare()
  • public static bool clearTag()
  • public static bool clearTags()
}

Hierarchy

Constants

Name Value
TTL_NO_EXPIRY 0

Members

private

  • $pools — array

protected

Methods

private

public

Inherited from Bluz\Proxy\ProxyTrait

public

Inherited from Bluz\Common\Singleton

public

History