def set(self, key, value, timeout=None):

        if timeout is None:
            timeout = self.timeout

        self.cache.set(key, value, timeout)
Sets a key-value in the cache.
dataset/ETHPy150Open django-tastypie/django-tastypie/tastypie/cache.py/SimpleCache.set