ApcuCache class

Framework\Cache\ApcuCache

Class ApcuCache.

Extends Framework\Cache\Cache

Defined in libraries/cache/src/ApcuCache.php

Methods #

delete()
-
flush()
-
get()
-
set()
-
getValue()
-
initialize()
-

delete()

public function delete(string $key): bool
Parameters
  • string $key
Returns bool

flush()

public function flush(): bool
Returns bool

get()

public function get(string $key): mixed
Parameters
  • string $key
Returns mixed

set()

public function set(string $key, mixed $value, ?int $ttl = NULL): bool
Parameters
  • string $key
  • mixed $value
  • ?int $ttl
Returns bool

getValue()

protected function getValue(string $key): mixed
Parameters
  • string $key
Returns mixed

initialize()

protected function initialize(): void
Returns void

Inherited methods #