Ticket #7496: db.py.diff
File db.py.diff, 690 bytes (added by , 16 years ago) |
---|
-
django/core/cache/backends/db.py
53 53 exp = datetime.fromtimestamp(time.time() + timeout).replace(microsecond=0) 54 54 if num > self._max_entries: 55 55 self._cull(cursor, now) 56 encoded = base64.encodestring(pickle.dumps(value , 2)).strip()56 encoded = base64.encodestring(pickle.dumps(value)).strip() 57 57 cursor.execute("SELECT cache_key FROM %s WHERE cache_key = %%s" % self._table, [key]) 58 58 try: 59 59 if mode == 'set' and cursor.fetchone():