def delete(self, dict_name):
        '''Delete an entire dictionary.

        This operation on its own is atomic and does not require a
        session lock, but a session lock is honored.

        :param str dict_name: name of the dictionary to delete
        :raises rejester.exceptions.LockError: if called with a session
          lock, but the system does not currently have that lock; or if
          called without a session lock but something else holds it
        '''
        conn = redis.Redis(connection_pool=self.pool)
        script = conn.register_script('''
        if redis.call("get", KEYS[1]) == ARGV[1]
        then
            redis.call("del", KEYS[2], KEYS[3])
            return 0
        else
            return -1
        end
        ''')
        res = script(keys=[self._lock_name,
                           self._namespace(dict_name),
                           self._namespace(dict_name) + 'keys'],
                     args=[self._session_lock_identifier])
        if res == -1:
            raise LockError()
def delete ( self , dict_name ) : conn = redis . Redis ( connection_pool = self . pool ) script = conn . register_script ( '''
        if redis.call("get", KEYS[1]) == ARGV[1]
        then
            redis.call("del", KEYS[2], KEYS[3])
            return 0
        else
            return -1
        end
        ''' ) res = script ( keys = [ self . _lock_name , self . _namespace ( dict_name ) , self . _namespace ( dict_name ) + 'keys' ] , args = [ self . _session_lock_identifier ] ) if res == - 1 : raise LockError ( )
Delete an entire dictionary.

        This operation on its own is atomic and does not require a
        session lock, but a session lock is honored.

        :param str dict_name: name of the dictionary to delete
        :raises rejester.exceptions.LockError: if called with a session
          lock, but the system does not currently have that lock; or if
          called without a session lock but something else holds it