GithubHelp home page GithubHelp logo

Comments (4)

TheCloudlessSky avatar TheCloudlessSky commented on July 17, 2024

Fixed in v1.1.0

from harbour.redissessionstatestore.

robertmircea avatar robertmircea commented on July 17, 2024

May I ask how do you treat the case when a Redis transaction fails because keys have changed and the previous watch command prevented the execution of the Redis commands?

http://redis.io/topics/transactions

In order to prevent all this concurrency problems it might be a good idea to use Redis 2.6 with Lua scripting support. Redis guarantees that the Lua script will be ran safely and in that case multiple operations on keys can be done without side effects.

http://redis.io/commands/eval

from harbour.redissessionstatestore.

TheCloudlessSky avatar TheCloudlessSky commented on July 17, 2024

So, right now, it'll just fail (which isn't ideal). I'm planning on using the generational approach in my NHibernate.Caches.Redis library but I haven't had time in the past few weeks. This approach keeps the generation of the data for every Redis client in sync. I'd be happy to also accept a pull request with this too 😄 !

I do apologize for not having the time to update this, since my project's aren't currently using this code.

from harbour.redissessionstatestore.

TheCloudlessSky avatar TheCloudlessSky commented on July 17, 2024

I thought I'd let you know that I just released v1.2.0 that will attempt to replay the transaction if it failed.

from harbour.redissessionstatestore.

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.