sasa1977 / con_cache

ets based key/value cache with row level isolated writes and ttl support
MIT License
910 stars 71 forks source link

Fix update examples to reflect {:ok, value} change #17

Closed cy303 closed 8 years ago

cy303 commented 8 years ago

all update() function examples in README.md have been updated to return new {:ok, value} semantics to prevent others to have to dig through changelog and test cases to find out about it

sasa1977 commented 8 years ago

Thanks for the fix and sorry if this caused you some problems.

cy303 commented 8 years ago

No harm done - just migrated code to use update() and was a bit confused by the errors ;-)

sasa1977 commented 8 years ago

Actually, thinking about it some more, I could add a catch-all clause and raise a more meaningful error. I'll play with this a bit, and maybe push an update.