def __init__(self, opts, name):
        '''
        Create a context cache
        '''
        self.opts = opts
        self.cache_path = os.path.join(opts['cachedir'], 'context', '{0}.p'.format(name))
        self.serial = salt.payload.Serial(self.opts)
def __init__ ( self , opts , name ) : self . opts = opts self . cache_path = os . path . join ( opts [ 'cachedir' ] , 'context' , '{0}.p' . format ( name ) ) self . serial = salt . payload . Serial ( self . opts )
Create a context cache