se7enxweb / nxc_memcache
NXC Memcache eZ Publish extension Official Community Project: usable with Exponential 6 after review; not yet in the App Store.
Package info
github.com/se7enxweb/nxc_memcache
Type:exponential-extension
pkg:composer/se7enxweb/nxc_memcache
Fund package maintenance!
Requires
- php: >=8.0
- se7enxweb/exponential-legacy-installer: ^2.2.6
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-12-03 19:17:35 UTC
README
This extension is simplified distributed file system based on Memcache. The main feature is to store some files by linux standard paths.
But there is no any difference between dirs and files. Dir is just a file without content. Thus files also may contain other subfiles or subdirs.
It has been implemented to provide an ablity to remove dirs and files recursively and to use it on cluster installations where several nodes must have rapid access to shared data.
Example
$m = new nxcMemcache( 'profiles/bill_gates.txt' );
$m->store( 'some content' );
var_dump( nxcMemcache::fetch( '/' )->getChild( 'profiles/bill_gates.txt' )->getContent() );
var_dump( nxcMemcache::fetch( 'profiles' )->getChild( 'bill_gates.txt' )->getContent() );
var_dump( nxcMemcache::fetch( 'profiles/bill_gates.txt' )->getContent() );
// Purge just a file
nxcMemcache::fetch( 'profiles/bill_gates.txt' )->delete();
// Remove root dir thus remove all files
nxcMemcache::fetch( '/' )->delete();
Official status: Official Community Project for Exponential 6. Usable with Exponential 6 after review; not yet in the App Store.