PHP Class RedisObjectCache_CLI_Commands

Inheritance: extends WP_CLI_Command
Show file Open project: tillkruss/redis-object-cache

Public Methods

Method Description
disable ( ) Disables the Redis object cache.
enable ( ) Enables the Redis object cache.
status ( ) Show the Redis object cache status and (when possible) client.
update_dropin ( ) Updates the Redis object cache drop-in.

Method Details

disable() public method

Default behavior is to delete the object cache drop-in, unless an unknown object cache drop-in is present. ## EXAMPLES wp redis disable
public disable ( )

enable() public method

Default behavior is to create the object cache drop-in, unless an unknown object cache drop-in is present. ## EXAMPLES wp redis enable
public enable ( )

status() public method

## EXAMPLES wp redis status
public status ( )

update_dropin() public method

Default behavior is to overwrite any existing object cache drop-in. ## EXAMPLES wp redis update-dropin
public update_dropin ( )