If you use Codeception installed using composer, install this module with the following command:
Alternatively, you can enable
Memcache module in suite configuration file and run
This module was bundled with Codeception 2 and 3, but since version 4 it is necessary to install it separately.
Some modules are bundled with PHAR files.
Warning. Using PHAR file and composer in the same project can cause unexpected errors.
Connects to memcached using either Memcache or Memcached extension.
Performs a cleanup by flushing all values after each test run.
'localhost') - The memcached host
11211) - The memcached port
Be sure you don’t use the production server to connect.
- memcache - instance of Memcache or Memcached object
Flushes all Memcached data.
Checks item in Memcached doesn’t exist or is the same as expected.
Grabs value from memcached by key.
Stores an item
$key on the Memcached server.
param string $key
param mixed $value
param int $expiration
Checks item in Memcached exists and the same as expected.