클래스·함수 명세

Cache

Zittme\Framework\Cache 클래스의 공개 메서드 목록입니다. 이 문서는 Zittme 코어 소스에서 자동 생성되었습니다.

소스: common/framework/Cache.php

공개 메서드

  • static function init($config)
  • Initialize the cache system.
  • static function getSupportedDrivers()
  • Get the list of supported cache drivers.
  • static function getDriverName()
  • Get the name of the currently enabled cache driver.
  • static function getDriverInstance($name = null, array $config = [])
  • Get the currently enabled cache driver, or a named driver with the given settings.
  • static function getPrefix()
  • Get the automatically generated cache prefix for this installation of Zittme.
  • static function getDefaultTTL()
  • Get the default TTL.
  • static function setDefaultTTL(int $ttl)
  • Set the default TTL.
  • static function get(string $key)
  • Get the value of a key.
  • static function set(string $key, $value, int $ttl = 0, bool $force = false)
  • Set the value to a key.
  • static function delete(string $key)
  • Delete a key.
  • static function exists(string $key)
  • Check if a key exists.
  • static function incr(string $key, int $amount = 1)
  • Increase the value of a key by $amount.
  • static function decr(string $key, int $amount = 1)
  • Decrease the value of a key by $amount.
  • static function clearGroup(string $group_name)
  • Clear a group of keys from the cache.
  • static function clearAll()
  • Clear all keys from the cache.
  • static function getGroupVersion(string $group_name)
  • Get the group version.
  • static function getRealKey(string $key)
  • Get the actual key used by Zittme.
  • static function sendClearRequest(array $keys)
  • Send a web request to clear the cache.