DatabaseAdapter
class DatabaseAdapter implements CacheAdapterInterface (View source)
Methods
void
__construct(array $config)
RedisAdapter constructor.
bool
set(string $key, mixed $data, int|null $time = null)
No description
bool
add(string $key_name, mixed $data, int|null $time = null)
No description
bool
has(string $key_name)
No description
bool
setMany(array $data)
No description
bool
forever(string $key, mixed $data)
No description
mixed
remember(string $key, int $time, callable $callback)
No description
int
increment(string $key, int $value = 1)
No description
int
decrement(string $key, int $value = 1)
No description
bool
push(string $key, array $data)
No description
bool
setTime(string $key, int $time)
No description
int|bool|string
timeOf(string $key)
No description
bool
forget(string $key_name)
No description
bool
expired(string $key)
No description
mixed
get(string $key, mixed $default = null)
No description
void
clear()
No description
Details
void
__construct(array $config)
RedisAdapter constructor.
bool
set(string $key, mixed $data, int|null $time = null)
No description
protected bool
add(string $key_name, mixed $data, int|null $time = null)
No description
bool
has(string $key_name)
No description
bool
setMany(array $data)
No description
bool
forever(string $key, mixed $data)
No description
mixed
remember(string $key, int $time, callable $callback)
No description
int
increment(string $key, int $value = 1)
No description
int
decrement(string $key, int $value = 1)
No description
bool
push(string $key, array $data)
No description
bool
setTime(string $key, int $time)
No description
int|bool|string
timeOf(string $key)
No description
bool
forget(string $key_name)
No description
bool
expired(string $key)
No description
mixed
get(string $key, mixed $default = null)
No description
void
clear()
No description