endeveit / cache Goto Github PK
View Code? Open in Web Editor NEWSimple caching library with support for tags
License: MIT License
Simple caching library with support for tags
License: MIT License
https://github.com/endeveit/cache/wiki/PDO Where mysql and sqlite driver?
No files for this namespaces Endeveit\Cache\Drivers\Pdo\SQLite, Endeveit\Cache\Drivers\Pdo\MySQL
There should be a method to clear all cache keys. Or at least add a getter for the memcached object so I can clear it.
The library does not use native expiration for expired items. Instead it stores expiration time inside data array and checks if item was expired.
As soon as it just returns boolean false for expired objects there is no ability for client to know if there was any stale data or the key was empty. It ends with higher memory (and network for some drivers) consumption.
The way to fix is to pass callable to the library to let it know, how to create fresh data. In single-threaded environment (which is most native for php) it has no value.
I suggest to use only native expiration time and let client implement use of stale objects implementing some queue-based pattern.
Needed docs (how to use) for library
It would be ideal if you had a vendor namespace for this code, the root namespace \Cache is pretty generic and will probably collide with others.
When called cache->get() for key containing previously incremented value got notice.
PHP Notice: unserialize(): Error at offset 0 of 5 bytes in cache/src/Serializers/BuiltIn.php on line 38
This does not appear to use a unique cache id prefix that can be set per project. I think that is something memcached needs for multiple sites on one server.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.