Save a copy of the object into the cache.

def save(self, expires=None):
        """Save a copy of the object into the cache."""

        if expires is None:
            expires = self.expires
        s = self.serialize()
        key = self._key(self._all_keys())
        _cache.set(key, s, expires)