Available cache backends

Django comes with several cache backends. These are the following:

  • backends.memcached.MemcachedCache or backends.memcached.PyLibMCCache: A Memcached backend. Memcached is a fast and efficient memory-based cache server. The backend to use depends on the Memcached Python bindings you choose.
  • backends.db.DatabaseCache: Use the database as cache system.
  • backends.filebased.FileBasedCache: Use the file storage system. Serializes and stores each cache value as a separate file.
  • backends.locmem.LocMemCache: Local memory cache backend. This the default cache backend.
  • backends.dummy.DummyCache: A dummy cache backend intended only for development. It implements the cache interface without actually caching anything. This cache is per-process and thread-safe.
For optimal performance, use a memory-based cache backend such as the Memcached backend.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.59.38.41