Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion django_elasticache/memcached.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ def _cache(self):

client = self._lib.Client(self.get_cluster_nodes())
if self._options:
client.behaviors = self._options
# In Django 1.11, all behaviors are shifted into a behaviors dict
# Attempt to get from there, and fall back to old behavior if the behaviors
# key does not exist
client.behaviors = self._options.get('behaviors', self._options)

container._client = client

Expand Down