hackpar / redis

Automatically exported from code.google.com/p/redis
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

[Feature Request] WATCH hash fields #421

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Use Case:

I have a hash with new fields being added frequently, but existing fields being 
updated infrequently. I would like to update an existing field in a 
transaction, and fail the transaction if another update occurs. If I WATCH
the hash key, then my transaction will fail frequently. I would like to WATCH
the field instead. 

The only workaround I can think of is to redundantly store the hash fields in 
simple key values, and watch these keys, but this is wasteful of memory.

Original issue reported on code.google.com by boxe...@gmail.com on 1 Jan 2011 at 7:35