Download the PHP package se7enxweb/sevenx_valkey_cache without Composer

On this page you can find all versions of the php package se7enxweb/sevenx_valkey_cache. 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 sevenx_valkey_cache

sevenx_valkey_cache

A Redis/Valkey backed cache handler for Exponential 6.0.15 or later.

It replaces disk file storage for:

Cache entries are stored in Redis/Valkey with TTL based expiry, generation locks and reverse node / subtree indexes so that publishing content selectively purges the affected cache entries.

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

See the LICENSE file or http://www.gnu.org/licenses/ for the full license text.

Author

Developed and maintained by 7xhttps://se7enx.com

Requirements

Kernel integration

Exponential 6.0.15 is expected to ship the kernel hooks this extension needs:

If the kernel does not yet contain these calls, the same hooks can be applied as a manual patch. The current rollout (which kernels are already patched) is tracked in /root/bin/doc/SEVENX_VALKEY_CACHE_ROLLOUT.md.

Installation

Manual install

  1. Copy or checkout the extension into extension/sevenx_valkey_cache.

  2. Make the extension active in settings/override/site.ini.append.php:

  3. Regenerate autoloads:

  4. (Optional) Clear caches:

Composer install

Then activate the extension and regenerate autoloads as described above.

Configuration

Configure the Redis/Valkey connection in settings/override/valkeycache.ini.append.php:

Content view cache

In Exponential 6.0.15 kernel/content/view.php uses sevenxValkeyCacheBlock for the content view cache backend. This stores full view results in Redis/Valkey instead of disk and dramatically reduces render time for cached nodes.

Compiled INI cache

Exponential 6.0.15 adds eZINI hooks that let the extension store compiled INI arrays in Redis/Valkey through sevenxValkeyINICache. This removes the per-request var/cache/ini/*.php disk touches and makes INI caches cluster-safe.

To enable it, set IniCache=enabled in valkeycache.ini (shown in the configuration example above). The extension also preloads all INI arrays used by the current request with a single MGET.

Usage

{valkey-block} template function

Use {valkey-block} anywhere you would use the built-in {cache-block} but want the rendered output stored in Redis/Valkey.

Parameters:

Manual cache management

The sevenxValkeyCacheBlock singleton can be used directly in custom code:

Static cache handler

sevenxValkeyCacheHandler is registered as ContentSettings.StaticCacheHandler. It is invoked when content changes and purges the Redis/Valkey view cache and block cache entries that are indexed by the affected node ids and their ancestors.

Implementation notes

The extension deliberately follows the architecture of the mugo_memcache proof-of-concept: a lightweight cache block class, a static cache handler for selective purging, a template function for block caching, a kernel/content/view.php content view cache integration, and a sevenxValkeyINICache backend for compiled INI caches. The storage backend has been changed from Memcache to Redis/Valkey, with added support for TTL based expiry, atomic generation locks, and node/subtree reverse indexes without requiring a relational database.

Current rollout

As of 2026-07-20, sevenx_valkey_cache is installed and active on the following Exponential/eZ Publish docroots:

All other *.se7enx.com, *.ezpublish.se7enx.com, *.exponential.earth and related eZ installations do not yet have the extension or the required kernel hooks. The full rollout status (including kernel patch state per docroot) is tracked in /root/bin/doc/SEVENX_VALKEY_CACHE_ROLLOUT.md.


All versions of sevenx_valkey_cache with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1.0
se7enxweb/exponential-legacy-installer Version *
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 se7enxweb/sevenx_valkey_cache contains the following files

Loading the files please wait ...