docs: def put(self, key, value, minutes):
          """
          Store an item in the cache for a given number of minutes.
  
          :param key: The cache key
          :type key: str
  
          :param value: The cache value
          :type value: mixed
  
          :param minutes: The lifetime in minutes of the cached value
          :type minutes: int
          """
          value = encode(str(self._expiration(minutes))) + encode(self.serialize(value))
  
          path = self._path(key)
          self._create_cache_directory(path)
  
          with open(path, 'wb') as fh:
              fh.write(value)