code: def delete(self, _key) :
          "removes a document from the cache"
          try :
              doc = self.cacheStore[_key]
              doc.prev.nextDoc = doc.nextDoc
              doc.nextDoc.prev = doc.prev
              del(self.cacheStore[_key])
          except KeyError :
              raise KeyError("Document with _key %s is not available in cache" % _keyf delete(self, _key) :
          "removes a document from the cache"
          try :
              doc = self.cacheStore[_key]
              doc.prev.nextDoc = doc.nextDoc
              doc.nextDoc.prev = doc.prev
              del(self.cacheStore[_key])
          except KeyError :
              raise KeyError("Document with _key %s is not available in cache" % _key)
docs: removes a document from the cache