Code Monkey home page Code Monkey logo

Comments (5)

marc-mabe avatar marc-mabe commented on June 14, 2024

Sorry but I don't get you point here. This is a cache component provides different storages with one interface to make it simple to switch between different possibilities.

Please can you explain a bit more what you expect here in context of caching.

Thanks

from zend-cache.

jeremymills avatar jeremymills commented on June 14, 2024

Hi Marc,

In Redis there is the sMembers and sIsMember capability to store values in an array key set sadd that you can then search the array/container key, in this instance, for the value(s) you are looking for ex: member1 || memberX. For example, It exists in PRedis.

My question is to why redis cache in zend does not have a supporting feature for this (unless it does and I can't seem to find any documentation on it)? You have ->hasItems, ->getItems, ->setItems, etc... but there is no implementation of a single collection storage, where I can search the key/collection for a set of values like in the example above.

I would expect to see it within the AbstractAdapter as it would no doubt be a feature of many other caching components.

from zend-cache.

jeremymills avatar jeremymills commented on June 14, 2024

@marc-mabe I have provided my proof of concept if it might help a little more, let me know if theres anything I have missed.

from zend-cache.

boesing avatar boesing commented on June 14, 2024

Why wont you just read the key, check if its an array and do your job in your code?
If you wont use such specific use cases, you could swap to any cache storage whenever you want.

from zend-cache.

marc-mabe avatar marc-mabe commented on June 14, 2024

I'm closing this now as there is no update in the discussion (and PR) and I still feel unconvinced with this.

from zend-cache.

Related Issues (20)

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.