Git Product home page Git Product logo

filecache's People

Contributors

dependabot[bot] avatar g105b avatar

Watchers

 avatar  avatar

Forkers

isabella232

filecache's Issues

Allow slashes to be used in names for nested directories

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.

TypeSafeGetter

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.

Handle errors in value generation

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.