DevCraft Документации
РазработкиAPI WrappersWebShare Proxy PHP WrapperСправочникClasses

CacheManager v1.0.0

Обёртка над TagAwareCache для GET-ответов.

Описание: Обёртка над TagAwareCache для GET-ответов.

Namespace: Devcraft\Webshare\Classes

С версии: 1.0.0

Public properties

  • public static function set(mixed $value, ?string $key = NULL, ?int $ttl = NULL, array $tags =
  • public static function get(?string $key =
  • public static function remember(callable $callback, ?string $key = NULL, ?int $ttl = NULL, array $tags =
  • public static function forget(?string $key =

Methods

set(mixed $value, ?string $key = NULL, ?int $ttl = NULL, array $tags = []): void

Параметры: mixed $value, ?string $key = NULL, ?int $ttl = NULL, array $tags = []

Возвращает: void

get(?string $key = NULL): mixed

Параметры: ?string $key = NULL

Возвращает: mixed

remember(callable $callback, ?string $key = NULL, ?int $ttl = NULL, array $tags = []): mixed

Параметры: callable $callback, ?string $key = NULL, ?int $ttl = NULL, array $tags = []

Возвращает: mixed

forget(?string $key = NULL): bool

Параметры: ?string $key = NULL

Возвращает: bool

invalidateTags(array $tags): void

Параметры: array $tags

Возвращает: void

На этой странице