Chuyển đến nội dung
Tài liệu

Tra cứu lớp và hàm

Cache

Danh sách các phương thức công khai của lớp Zittme\Framework\Cache. Tài liệu này được tạo tự động từ mã nguồn lõi Zittme.

Nguồn: common/framework/Cache.php

Phương thức công khai

  • 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.