1stvamp/memorised — pull request #4 by jbastos (2013-01-03 13:36:26+00:00)
Title: Added value parameter

Added a 'value' parameter - used only if invalidate == True and update == True
It will set the cached value to `value`

Why?
Invalidate is expensive - a new database access must be done to get the new cache value.
If we already have the object instance, we just set it in the "value" parameter, saving a database hit.