Skip to content

Latest commit

 

History

History
74 lines (38 loc) · 2.01 KB

File metadata and controls

74 lines (38 loc) · 2.01 KB
layout title
doc
Memcache - Codeception - Documentation

Connects to memcached using either Memcache or Memcached extension.

Performs a cleanup by flushing all values after each test run.

Status

Configuration

  • host: localhost - memcached host to connect
  • port: 11211 - default memcached port.

Be sure you don't use the production server to connect.

Public Properties

  • memcache - instance of Memcache object

clearMemcache

Flushes all Memcached data.

dontSeeInMemcached

Checks item in Memcached doesn't exist or is the same as expected.

  • param $key
  • param bool $value

grabValueFromMemcached

Grabs value from memcached by key

Example:

{% highlight php %}

grabValueFromMemcached('users_count'); ?>

{% endhighlight %}

  • param $key
  • return array|string

seeInMemcached

Checks item in Memcached exists and the same as expected.

  • param $key
  • param $value

 

Module reference is taken from the source code. Help us to improve documentation. Edit module reference