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)
def save ( self , expires = None ) : if expires is None : expires = self . expires s = self . serialize ( ) key = self . _key ( self . _all_keys ( ) ) _cache . set ( key , s , expires )
Save a copy of the object into the cache.