class DatabaseAdapter implements CacheAdapterInterface (View source)

Methods

mixed
__construct(array $config)

RedisAdapter constructor.

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

No description

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

No description

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

No description

bool
addMany(array $data)

No description

bool
forever(string $key, mixed $data)

No description

bool
push(string $key, array $data)

No description

bool
addTime(string $key, int $time)

No description

int|bool|string
timeOf(string $key)

No description

bool
forget(string $key)

No description

bool
has(string $key)

No description

bool
expired(string $key)

No description

void
clear()

No description

Details

mixed __construct(array $config)

RedisAdapter constructor.

Parameters

array $config

Return Value

mixed

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

No description

Parameters

string $key
mixed $data
int|null $time

Return Value

bool

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

No description

Parameters

string $key
mixed $default

Return Value

mixed

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

No description

Parameters

string $key
mixed $data
int|null $time

Return Value

mixed

bool addMany(array $data)

No description

Parameters

array $data

Return Value

bool

bool forever(string $key, mixed $data)

No description

Parameters

string $key

The cache key

mixed $data

Return Value

bool

bool push(string $key, array $data)

No description

Parameters

string $key

The cache key

array $data

Return Value

bool

bool addTime(string $key, int $time)

No description

Parameters

string $key
int $time

Return Value

bool

int|bool|string timeOf(string $key)

No description

Parameters

string $key

Return Value

int|bool|string

bool forget(string $key)

No description

Parameters

string $key

Return Value

bool

bool has(string $key)

No description

Parameters

string $key

Return Value

bool

bool expired(string $key)

No description

Parameters

string $key

Return Value

bool

void clear()

No description

Return Value

void