Memcache

缓存对象占用内存

import sys
from pickle import Pickler, Unpickler
from io import BytesIO
file = BytesIO()
pickler = Pickler(file, 0)
pickler.dump(feed)
value = file.getvalue()
sys.getsizeof(value)