Code Monkey home page Code Monkey logo

Comments (9)

Nerdyvedi avatar Nerdyvedi commented on July 22, 2024 1

And let's say I want to delete a key from each server, I'll iterate through each client and call delete ?

from pymemcache.

jogo avatar jogo commented on July 22, 2024

Hi @Nerdyvedi, if you think this is a bug in pymemcache mind sharing the steps to reproduce the issue?

from pymemcache.

Nerdyvedi avatar Nerdyvedi commented on July 22, 2024

@jogo , Don't think it's a bug. I want to know if there's a feature that could allow me to delete key from a specific server?

from pymemcache.

jogo avatar jogo commented on July 22, 2024

@jogo , Don't think it's a bug. I want to know if there's a feature that could allow me to delete key from a specific server?

got it, it depends on which specific client you are using. For the HashClient you can find all the individual clients in self.clients

from pymemcache.

Nerdyvedi avatar Nerdyvedi commented on July 22, 2024

@jogo At this moment thr _run_cmd function takes in the cmd and the key.
It then find the client from the key, and then runs the command.

There is no public function I can access that would allow me to delete key from specific client

from pymemcache.

Nerdyvedi avatar Nerdyvedi commented on July 22, 2024

Do you think it makes sense to create a function something like delete_from_client, and pass in the client we want to delete the key from?

from pymemcache.

jogo avatar jogo commented on July 22, 2024

can you just do something like?

for client in my_hash_client.clients:
    client.delete(...)

from pymemcache.

Nerdyvedi avatar Nerdyvedi commented on July 22, 2024

Got it, Thanks. Client has a delete function itself.

from pymemcache.

Nerdyvedi avatar Nerdyvedi commented on July 22, 2024

@jogo Is there a way I can delete from individual clients using the builtin RetryingClient module?

from pymemcache.

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.