'Sets a key-value in the cache.
Optionally accepts a ``timeout`` in seconds. Defaults to ``None`` which
uses the resource\'s default timeout.'

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

    if (timeout is None):
        timeout = self.timeout
    self.cache.set(key, value, timeout)
