original_docstring: Add (key, value) pair to the cache. If cache limits are exceeded,
          eject key-value pairs till the cache is within limits.
docstring: Add (key, value) pair to the cache. If cache limits are exceeded,
  eject key-value pairs till the cache is within limits.
docstring_tokens: Add ( key value ) pair to the cache . If cache limits are exceeded eject key - value pairs till the cache is within limits .
code: def put(self, key, value):
          """Add (key, value) pair to the cache. If cache limits are exceeded,
          eject key-value pairs till the cache is within limits."""
          self.rwlock.acquire_write()
          self.cache[key] = value
          self.cache.move_to_end(key)
          if len(self.cache) > self.max_items:
              self.cache.popitem(last=False)
          self.rwlock.release_write()
          _log.debug(str(self))
code_tokens: def put ( self , key , value ) : self . rwlock . acquire_write ( ) self . cache [ key ] = value self . cache . move_to_end ( key ) if len ( self . cache ) > self . max_items : self . cache . popitem ( last = False ) self . rwlock . release_write ( ) _log . debug ( str ( self ) )
short_docstring: Add (key, value) pair to the cache.
short_docstring_tokens: Add ( key value ) pair to the cache .
comment: """Add (key, value) pair to the cache. If cache limits are exceeded,
          eject key-value pairs till the cache is within limits."""