ApcWrapper
class ApcWrapper (View source)
Свойства
| protected bool | $apcu | Указывает, поддерживается ли APCu. |
Методы
| void | __construct() Создаёт новый экземпляр обёртки APC. | |
| mixed | get(string $key) Получает элемент из кэша. | |
| array|bool | put(string $key, mixed $value, int $seconds) Сохраняет элемент в кэше. | |
| int|bool | increment(string $key, mixed $value) Увеличивает значение элемента в кэше. | |
| int|bool | decrement(string $key, mixed $value) Уменьшает значение элемента в кэше. | |
| bool | delete(string $key) Удаляет элемент из кэша. | |
| bool | flush() Удаляет все элементы из кэша. |
Подробности
void __construct()
Создаёт новый экземпляр обёртки APC.
mixed get(string $key)
Получает элемент из кэша.
array|bool put(string $key, mixed $value, int $seconds)
Сохраняет элемент в кэше.
int|bool increment(string $key, mixed $value)
Увеличивает значение элемента в кэше.
int|bool decrement(string $key, mixed $value)
Уменьшает значение элемента в кэше.
bool delete(string $key)
Удаляет элемент из кэша.
bool flush()
Удаляет все элементы из кэша.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.8/Illuminate/Cache/ApcWrapper.html