cache_cluster = elasticache.create_cache_cluster( CacheClusterId='cache-cluster-id', CacheNodeType='cache.t2.micro', NumCacheNodes=1, Engine='redis', ...)
cache_cluster.modify( ApplyImmediately=True, NotificationTopicArn='arn:aws:sns:us-east-1:123456789012:cache-failover-topic', EngineVersion='3.2.6', AutoMinorVersionUpgrade=True, MultiAZ=True, PreferredMaintenanceWindow='sun:05:00-sun:06:00' )
cache_snapshot = elasticache.create_snapshot( CacheClusterId='cache-cluster-id', SnapshotName='cache-snapshot' )
pip install django-cache-pylibmc
CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache', 'LOCATION': [ 'cache-cluster-id-001.cache.amazonaws.com:11211', ... ], 'OPTIONS': { 'binary': True, 'username': cache_username, 'password': cache_password, 'behaviors': { 'tcp_nodelay': True, 'ketama': True, } } } }