Giter Club home page Giter Club logo

cache's Introduction

Build Status Code Climate Test Coverage

This is a Caching library that implements PSR-6

Current Driver Support:

  • Filesystem
  • APC
  • Memached

Install

composer require gpupo/cache

Contributors

License

MIT, see LICENSE.

Links

cache's People

Contributors

gpupo avatar

Stargazers

 avatar  avatar

Watchers

 avatar

cache's Issues

The package should depend on psr/cache instead of implementing the interfaces on its own

Defining the interface yourselves and replacing the original package is a bad idea, especially given that the phpdoc of your interfaces don't match the actual PSR (return values for most method are booleans, not a fluent interface).

Please either upgrade your package to actually respect PSR-6, or mark it as abandoned on Packagist so that people looking for a PSR-6 implement know that they should go elsewhere.

New release

Is it possible to have a new release ? If there is something you'd like to be done before, please tell me and I'll help if I can

Missing Methods from Psr\Cache\CacheItemInterface

Hi @gpupo

any plans on updating the library to match the PSR-6 specs?

These two methods are missing in your implementation:

public function expiresAt($expiration);
@see https://github.com/php-fig/cache/blob/master/src/CacheItemInterface.php#L89

public function expiresAfter($time);
@see https://github.com/php-fig/cache/blob/master/src/CacheItemInterface.php#L104

Please let me know. I use your implementation in a demo and in unit-tests for https://github.com/clickalicious/caching-middleware but now the dependency is broken.

I can also do the work and send you a PR for the changes if u like.

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.