Skip to content

Instantly share code, notes, and snippets.

@skyl
Created March 1, 2011 17:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skyl/849500 to your computer and use it in GitHub Desktop.
Save skyl/849500 to your computer and use it in GitHub Desktop.
stashing a mediocre idea
import djredis.models as djr
class MyMod(models.Model, djr.DredisMixin):
#...
currency = models.CharField(max_length=3)
djr_currency = djr.String()
cache_fields = (('currency', 'djr_currency'),)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment