Download the PHP package nanoblocktech/psr-cache without Composer
On this page you can find all versions of the php package nanoblocktech/psr-cache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nanoblocktech/psr-cache
More information about nanoblocktech/psr-cache
Files in nanoblocktech/psr-cache
Package psr-cache
Short Description PSR cache for Luminova framework.
License MIT
Informations about the package psr-cache
Luminova PSR Cache Interface
The PSR Cache implementation for the Luminova Framework, Luminova Framework GitHub providing CachePool and SimpleCache class.
This library enables the use of both file-based and memory-based (Memcached) caching systems with an easy-to-use API.
For more information read the official documentation PSR Cache Pool and PSR Simple Cache.
Installation
Via Composer:
Cache Pool Class
The CachePool class provides an interface to manage cache items.
It supports multiple cache storage driver, such as file-based or memory-based (Memcached) caching.
Usage Example
CachePool Class Methods
Constructor
- $storage: Cache storage name to differentiate cache spaces (defaults to
'psr_cache_storage'). - $subfolderOrId: Optional subfolder for file-based cache or Memcached persistent ID (defaults to
'psr'). - $driver: Optional cache driver, either
CachePool::FILECACHE(default) orCachePool::MEMCACHED.
Methods
Simple Cache Class
The SimpleCache class provides a simplified interface for interacting with the cache.
It offers basic operations for storing and retrieving cached data, it supports multiple cache storage driver, such as file-based or memory-based (Memcached) caching.
Usage Example
SimpleCache Class Methods
Constructor
Methods
Cache Item Class
The CacheItem class represents an individual cache entry.
It includes methods to manipulate and manage the cached data when working with CachePool class.