phpgt / filecache Goto Github PK
View Code? Open in Web Editor NEWCache data in local files.
Cache data in local files.
A currently requirement I have on a project is to sort a lot of different names - it would be really useful to put these in their own directory, rather than prefixing everything in the same directory.
FileAccess::setData
should check whether the directory needs creating for the $filePath
, not just $this->dirPath
.
It would be super useful to have type safety in the caches, rather than treating everything as mixed
, but it's probably going to be likely to use classes heavily in the cache, so this issue is dependent on PhpGt/TypeSafeGetter#4.
In the example directory, 01-latlon.php
makes an HTTP call, but what if the curl process times out, or what if the response isn't valid JSON?
It might be useful to be able to cache null
, so simply returning null might not be the best solution. A better solution might be to throw a CacheValueGenerationException
, which can be internally caught and ignored.
The method getClass
has been renamed to getInstance
. This needs to be managed here.
Dependabot needs to be tamed, as per PhpGt/WebEngine#568
When constructing the Cache
object, pass in a default cache time that will affect the default time for all calls to get* methods.
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.