Download the PHP package leocolomb/wp-redis without Composer

On this page you can find all versions of the php package leocolomb/wp-redis. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wp-redis

Redis Cache for WordPress

A persistent cache backend powered by Redis.

Build Status Packagist

Features

Installation

Configuration

To adjust the configuration, define any of the following constants in your wp-config.php file.

Connection

By default the object cache drop-in will connect to Redis over TCP at 127.0.0.1:6379 and select database 0.

Constant name Default value Description
WP_REDIS_CLIENT not set Specifies the client used to communicate with Redis. Supports pecl and predis.
WP_REDIS_SCHEME tcp Specifies the protocol used to communicate with an instance of Redis. Internally the client uses the connection class associated to the specified connection scheme. Supports tcp (TCP/IP), unix (UNIX domain sockets), tls (transport layer security) or http (HTTP protocol through Webdis).
WP_REDIS_HOST 127.0.0.1 IP or hostname of the target server. This is ignored when connecting to Redis using UNIX domain sockets.
WP_REDIS_PORT 6379 TCP/IP port of the target server. This is ignored when connecting to Redis using UNIX domain sockets.
WP_REDIS_PATH not set Path of the UNIX domain socket file used when connecting to Redis using UNIX domain sockets.
WP_REDIS_DATABASE 0 Accepts a numeric value that is used to automatically select a logical database with the SELECT command.
WP_REDIS_PASSWORD not set Accepts a value used to authenticate with a Redis server protected by password with the AUTH command.

Parameters

Constant name Default value Description
WP_CACHE_KEY_SALT not set Set the prefix for all cache keys. Useful in setups where multiple installs share a common wp-config.php or $table_prefix, to guarantee uniqueness of cache keys.
WP_REDIS_MAXTTL not set Set maximum time-to-live (in seconds) for cache keys with an expiration time of 0.
WP_REDIS_GLOBAL_GROUPS ['blog-details', 'blog-id-cache', 'blog-lookup', 'global-posts', 'networks', 'rss', 'sites', 'site-details', 'site-lookup', 'site-options', 'site-transient', 'users', 'useremail', 'userlogins', 'usermeta', 'user_meta', 'userslugs'] Set the list of network-wide cache groups that should not be prefixed with the blog-id (Multisite only).
WP_REDIS_IGNORED_GROUPS ['counts', 'plugins'] Set the cache groups that should not be cached in Redis.
WP_REDIS_IGBINARY not set Set to true to enable the igbinary serializer.

Page cache

Constant name Default value Description
WP_CACHE false Set to true to enable advanced page caching. If not set, the Redis page cache will not be used.
WP_REDIS_TIMES 2 Only cache a page after it is accessed this many times.
WP_REDIS_SECONDS 120 Only cache a page if it is accessed $times in this many seconds. Set to zero to ignore this and use cache immediately.
WP_REDIS_MAXAGE 300 Expire cache items aged this many seconds. Set to zero to disable cache.
WP_REDIS_GROUP 'redis-cache' Name of object cache group used for page cache.
WP_REDIS_UNIQUE [] If you conditionally serve different content, put the variable values here using the add_variant() method.
WP_REDIS_HEADERS [] Add headers here as name => value or name => [values]. These will be sent with every response from the cache.
WP_REDIS_UNCACHED_HEADERS ['transfer-encoding'] These headers will never be cached. (Use lower case only!)
WP_REDIS_CACHE_CONTROL true Set to false to disable Last-Modified and Cache-Control headers.
WP_REDIS_USE_STALE true Is it ok to return stale cached response when updating the cache?
WP_REDIS_NOSKIP_COOKIES ['wordpress_test_cookie'] Names of cookies - if they exist and the cache would normally be bypassed, don't bypass it.

Replication & Clustering

To use Replication and Clustering, make sure your server is running PHP7, your setup is using Predis to connect to Redis and you consulted the Predis documentation.

For replication use the WP_REDIS_SERVERS constant and for clustering the WP_REDIS_CLUSTER constant. You can use a named array or an URI string to specify the parameters.

For authentication use the WP_REDIS_PASSWORD constant.

Master-Slave Replication

Clustering via Client-side Sharding

License

GPL-3.0 © Léo Colombaro


All versions of wp-redis with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
koodimonni/composer-dropin-installer Version ^1.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package leocolomb/wp-redis contains the following files

Loading the files please wait ....