Add a normalize_cache_backend function.

Review Request #3604 — Created Dec. 1, 2012 and submitted

Information

Djblets
master

Reviewers

Add a normalize_cache_backend function.

This provides a function for taking either a new-style CACHES dictionary
or an old-style CACHE_BACKEND and returning a valid CACHES dictionary.
It's basically just logic moved out of siteconfig and into a new
djblets.util.cache.

Now that we have this file, I'll later begin work on transitioning our
other caching functions.
Unit tests pass.

Tested this with my new cache support in RB.
Description From Last Updated

Docstring?

daviddavid
chipx86
david
  1. 
      
  2. djblets/util/cache.py (Diff revision 2)
     
     
    Show all issues
    Docstring?
  3. 
      
chipx86
david
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to master (dfc1e8e)