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.

Parameters

array $config

Return Value

void

Exceptions

ConnectionException

bool set(string $key, mixed $data, int|null $time = null)

No description

Parameters

string $key
mixed $data
int|null $time

Return Value

bool

Exceptions

Exception

protected bool add(string $key_name, mixed $data, int|null $time = null)

No description

Parameters

string $key_name
mixed $data
int|null $time

Return Value

bool

Exceptions

Exception

bool has(string $key_name)

No description

Parameters

string $key_name

Return Value

bool

Exceptions

QueryBuilderException

bool setMany(array $data)

No description

Parameters

array $data

Return Value

bool

Exceptions

Exception

bool forever(string $key, mixed $data)

No description

Parameters

string $key

The cache key

mixed $data

Return Value

bool

Exceptions

Exception

mixed remember(string $key, int $time, callable $callback)

No description

Parameters

string $key
int $time
callable $callback

Return Value

mixed

Exceptions

Exception

int increment(string $key, int $value = 1)

No description

Parameters

string $key
int $value

Return Value

int

Exceptions

Exception

int decrement(string $key, int $value = 1)

No description

Parameters

string $key
int $value

Return Value

int

Exceptions

Exception

bool push(string $key, array $data)

No description

Parameters

string $key

The cache key

array $data

Return Value

bool

Exceptions

Exception

bool setTime(string $key, int $time)

No description

Parameters

string $key
int $time

Return Value

bool

Exceptions

QueryBuilderException
Exception

int|bool|string timeOf(string $key)

No description

Parameters

string $key

Return Value

int|bool|string

Exceptions

QueryBuilderException
Exception

bool forget(string $key_name)

No description

Parameters

string $key_name

Return Value

bool

Exceptions

QueryBuilderException
Exception

bool expired(string $key)

No description

Parameters

string $key

Return Value

bool

Exceptions

QueryBuilderException

mixed get(string $key, mixed $default = null)

No description

Parameters

string $key
mixed $default

Return Value

mixed

Exceptions

QueryBuilderException

void clear()

No description

Return Value

void