Yac클래스
(PECL yac >= 1.0.0)
소개
클래스 개요
class Yac { /* Properties */ protected $_prefix; /* Methods */ public __construct(string $prefix = "") public add(string $keys, mixed $value, int $ttl = 0): bool public add(array $key_vals): bool public delete(string|array $keys, int $ttl = ?): bool public dump(int $$num): mixed public flush(): bool public get(string|array $key, int &$cas = null): mixed public __get(string $key): mixed public info(): array public set(string $keys, mixed $value, int $ttl = 0): bool public add(array $key_vals): bool public __set(string $keys, mixed $value): mixed }
Properties
_prefix
목차
- Yac::add — 캐시에 저장
- Yac::__construct — Constructor
- Yac::delete — 캐시에서 항목 제거
- Yac::dump — Dump cache
- Yac::flush — Flush the cache
- Yac::get — 캐시에서 값 검색
- Yac::__get — Getter
- Yac::info — 캐시 상태
- Yac::set — 캐시에 저장
- Yac::__set — Setter