Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(51)  |  Call(51)  |  Derive(0)  |  Import(0)

src/p/r/pritunl-HEAD/pritunl/organization.py   pritunl(Download)
        cache_db.list_remove('orgs_sorted', self.id)
        cache_db.decrement('org_count')
        cache_db.remove(self.get_cache_key('users_cached'))
        cache_db.remove(self.get_cache_key('users'))
        cache_db.remove(self.get_cache_key('user_count'))
        cache_db.remove(self.get_cache_key('users_sorted'))
        cache_db.remove(self.get_cache_key('users_page_index'))

src/p/r/pritunl-0.10.9/pritunl/organization.py   pritunl(Download)
    def clear_cache(self):
        cache_db.set_remove('orgs', self.id)
        cache_db.list_remove('orgs_sorted', self.id)
        cache_db.decrement('org_count')
        cache_db.remove(self.get_cache_key('users_cached'))
        cache_db.remove(self.get_cache_key('users'))
                cache_db.lock_release(self.get_cache_key('sort'))
        except:
            cache_db.remove(self.get_cache_key(users_page_index_key))
            cache_db.remove(self.get_cache_key(temp_users_sorted_key))
            raise
 
    def _cache_users(self):
        if cache_db.get(self.get_cache_key('users_cached')) != 't':
            cache_db.remove(self.get_cache_key('users'))

src/p/r/pritunl-0.10.9/pritunl/server.py   pritunl(Download)
    def clear_cache(self):
        self._clear_list_cache()
        cache_db.remove(self.get_cache_key('clients'))
        cache_db.remove(self.get_cache_key('ip_pool'))
        cache_db.remove(self.get_cache_key('ip_pool_set'))
        cache_db.remove(self.get_cache_key('ip_pool_cached'))
    def commit(self):
        if self._rebuild_dh_params:
            self._generate_dh_param()
        if self._reset_ip_pool:
            cache_db.remove(self.get_cache_key('ip_pool'))

src/p/r/pritunl-HEAD/pritunl/server.py   pritunl(Download)
    def clear_cache(self):
        self._clear_list_cache()
        cache_db.remove(self.get_cache_key('clients'))
        cache_db.remove(self.get_cache_key('ip_pool'))
        cache_db.remove(self.get_cache_key('ip_pool_set'))
        cache_db.remove(self.get_cache_key('ip_pool_cached'))
    def commit(self):
        if self._rebuild_dh_params:
            self._generate_dh_param()
        if self._reset_ip_pool:
            cache_db.remove(self.get_cache_key('ip_pool'))

src/p/r/pritunl-HEAD/pritunl/user.py   pritunl(Download)
                    return True
                else:
                    cache_db.remove(self.get_cache_key('otp_cache'))
 
        otp_secret = self.otp_secret
        if self.type != CERT_CA:
            self._remove_cache_trie_key()
        cache_db.remove(self.get_cache_key('otp'))
        cache_db.remove(self.get_cache_key('otp_cache'))
        Config.clear_cache(self)

src/p/r/pritunl-HEAD/pritunl/cache_trie.py   pritunl(Download)
    def clear_cache(self):
        cache_db.remove(self.get_cache_key())
        cache_db.remove(self.get_cache_key('values'))
 
    def get_cache_key(self, suffix=None):
            cache_db.set_remove(name_key, new_key)
            if not cache_db.set_length(name_key):
                cache_db.remove(name_key)
            cur_key = new_key
        name_key = name + cur_key + '_values'
        cache_db.set_remove(name_key, value)
        if not cache_db.set_length(name_key):
            cache_db.remove(name_key)

src/p/r/pritunl-0.10.9/pritunl/cache_trie.py   pritunl(Download)
    def clear_cache(self):
        cache_db.remove(self.get_cache_key())
        cache_db.remove(self.get_cache_key('values'))
 
    def get_cache_key(self, suffix=None):

src/p/r/pritunl-0.10.9/pritunl/config.py   pritunl(Download)
    def clear_cache(self):
        cache_db.remove(self.get_cache_key('cached'))
        cache_db.remove(self.get_cache_key())
 
    def load(self, merge=False):

src/p/r/pritunl-HEAD/pritunl/config.py   pritunl(Download)
    def clear_cache(self):
        cache_db.remove(self.get_cache_key('cached'))
        cache_db.remove(self.get_cache_key())
 
    def load(self, merge=False):