robertmain / uniformcache Goto Github PK
View Code? Open in Web Editor NEWCache abstraction layer for PHP
License: GNU General Public License v3.0
Cache abstraction layer for PHP
License: GNU General Public License v3.0
The adapter settings array should be documented for each adapter to indicate what kind of settings each adapter expects and what format they should be in
The class naming scheme should be compatible with PSR-0 (https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md); following these established conventions would make it much easier to integrate this library into a project since it avoids name collision issues and can be easily auto-loaded (instead of having to have a custom auto-loader or require_once).
It would be nice to have SQLite support as a cache back-end. It doesn't need an actually database server, and can use a persistent in-memory store (example: http://www.php.net/manual/en/ref.pdo-sqlite.connection.php#105350), making it a nice alternative when APC and the like are absent.
DiskAdapter should take the full path to the cache file instead of just the filename and defaulting to the same directory as the library.
The absence of unit tests make it difficult to modify the source code, since there is no easy way of checking if the new changes break other stuff.
Objects need to be serialized and deserialized on get and set
Caching class should return a result object not the actual value itself. This would allow for things like a hash of the object and other metadata
The tests for this library kinda suck. They need to be completely rewritten from the ground up
It would be nice to have support for an optional cache validation mechanism, instead of having to rely on a fixed TTL. For example, a cache item's validity might depend on the modified time stamp of a file, or a modified datetime column in the database.
Supporting composer (https://getcomposer.org/doc/00-intro.md) would make it easier to integrate this library into a project.
Documentation should be done using docblocks
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.