https://github.com/thecodingmachine/utils.cache.in-memory-cache
This package contains the most basic cache mechanism. It stores cache items in an array. It means the cache is flushed as soon as the script returns. It is very basic, but also very fast. You will usually use this mechanism with another one just behind.
https://github.com/thecodingmachine/utils.cache.in-memory-cache
Last synced: about 1 year ago
JSON representation
This package contains the most basic cache mechanism. It stores cache items in an array. It means the cache is flushed as soon as the script returns. It is very basic, but also very fast. You will usually use this mechanism with another one just behind.
- Host: GitHub
- URL: https://github.com/thecodingmachine/utils.cache.in-memory-cache
- Owner: thecodingmachine
- Created: 2013-07-21T16:44:48.000Z (almost 13 years ago)
- Default Branch: 1.0
- Last Pushed: 2015-07-10T13:31:21.000Z (almost 11 years ago)
- Last Synced: 2025-04-01T18:02:14.245Z (about 1 year ago)
- Language: PHP
- Size: 112 KB
- Stars: 1
- Watchers: 11
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Mouf local cache service
========================
This package contains the most basic implementation of Mouf's CacheInterface. It stores cache items in an in-memory array.
It means the cache is flushed as soon as the script returns. It is very basic, but also very fast. You will usually use this mechanism with another one just behind.
To learn more about the cache interface, please see the [cache system documentation](http://mouf-php.com/packages/mouf/utils.cache.cache-interface).
Compared to Mouf's other cache implementations, the local cache system comes with an additional feature: _a chaining mechanism_.
In practice, you would put the in-memory cache in front of another cache. If your application queries several times the
same key in the same script, it will be available in-memory and the cache system will not be queried (hence a faster result).