Redis

Local variables in Redis Lua scripts

In Redis and Lua scripting I described getting started with the Lua scripting language for Redis. It is a great way to make sure that all the Redis actions that need to, can execute without interruption. In […]

Redis

Fixing out of sync server times

In My server times are out of sync! I showed a formula to smooth the time differences between multiple servers when working a collaborative environment, but I started not to believe the results so set out to […]

Redis

Redis and Lua scripting

If you are not familiar with Redis, then you should go check it out. It’s a persistent cache that has many great features. Of course it’s not really a database, so preserving atomicity during transactions can […]

Redis

My server times are out of sync!

When you are dealing with an app that uses several different servers, and which relies on timestamps for workflow activities, it’s very hard to understand what’s going on when the server times are out of […]

Redis

Preserving TTL for redis item update

When you update an item in Redis, there’s no real difference than setting it for the first time. That means that the expire time (TTL) on the original record will be lost, but if you […]