GithubHelp home page GithubHelp logo

Comments (6)

protocol7 avatar protocol7 commented on August 15, 2024

I got a branch somewhere where I refactored out a hasher interface for this exact purpose. When I get the cycled I can dig it up.

from folsom.

azagorneanu avatar azagorneanu commented on August 15, 2024

@spkrka @protocol7 I'm trying to migrate from another memcached library to Folsom and I'm also missing this feature. I need to be able to customize the call to Continuum.findClient(byte[] key).

For example I want to customize so that all the keys that start with some common prefix go to the same node:

  • prefix1-sufix1 key - goes to node 1
  • prefix1-sufix2 key - goes to node 1
  • prefix2-sufix3 key - goes to node 2

from folsom.

azagorneanu avatar azagorneanu commented on August 15, 2024

Some kind of SessionLocator or NodeLocator abstractization would be nice to have. Then we can provide custom implementations or extend/reuse the existing ones(e.g. KetamaSessionLocator).

from folsom.

protocol7 avatar protocol7 commented on August 15, 2024

@azagorneanu I never got around to finishing up my branch, but I would still agree that a node locator would be a nice abstraction to have pluggable. If you're up for proposing a PR, I would be happy to take a look.

from folsom.

spkrka avatar spkrka commented on August 15, 2024

I agree it would be useful. I tried playing around with adding something, but without having an explicit use case in mind it is harder, so I would also prefer having a proposal to review.

from folsom.

azagorneanu avatar azagorneanu commented on August 15, 2024

Cool! I will try to send a PR for review. Thanks.

from folsom.

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.