<s> __all__ = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> import os <EOL> class KeyError ( Exception ) : pass <EOL> class BaseStorage ( object ) : <EOL> def __init__ ( self , cache_manager , options ) : <EOL> self . cache_manager = cache_manager <EOL> self . options = options <EOL> def get ( self , key ) : <EOL> raise NotImplementedError ( ) <EOL> def set ( self , key , value ) : <EOL> raise NotImplementedError ( ) <EOL> def delete ( self , key ) : <EOL> raise NotImplementedError ( ) <EOL> def _load ( self , v ) : <EOL> return self . cache_manager . serial_obj . load ( v ) <EOL> def _dump ( self , v ) : <EOL> return self . cache_manager . serial_obj . dump ( v ) </s>
