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

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

src/p/r/pritunl-0.10.9/pritunl/organization.py   pritunl(Download)
                users_sort.append(name_id)
 
            cache_db.set(self.get_cache_key('user_count'), str(user_count))
 
            cur_page = 0
                cache_db.rename(self.get_cache_key(temp_users_sorted_key),
                    self.get_cache_key('users_sorted'))
                cache_db.set(self.get_cache_key('users_page_total'),
                    str(cur_page))
            finally:
                    cache_db.set_add(self.get_cache_key('users'), user_id)
            self.sort_users_cache()
            cache_db.set(self.get_cache_key('users_cached'), 't')
 
    def _get_user_count(self):
                orgs_dict[name_id] = org_id
                orgs_sort.append(name_id)
            cache_db.set('org_count', str(org_count))
            for name_id in sorted(orgs_sort):
                cache_db.list_rpush(temp_orgs_sorted_key, orgs_dict[name_id])
                    cache_db.set_add('orgs', org_id)
            cls.sort_orgs_cache()
            cache_db.set('orgs_cached', 't')
 
    @classmethod

src/p/r/pritunl-HEAD/pritunl/organization.py   pritunl(Download)
                users_sort.append(name_id)
 
            cache_db.set(self.get_cache_key('user_count'), str(user_count))
 
            cur_page = 0
                cache_db.rename(self.get_cache_key(temp_users_sorted_key),
                    self.get_cache_key('users_sorted'))
                cache_db.set(self.get_cache_key('users_page_total'),
                    str(cur_page))
            finally:
                    cache_db.set_add(self.get_cache_key('users'), user_id)
            self.sort_users_cache()
            cache_db.set(self.get_cache_key('users_cached'), 't')
 
    def _get_user_count(self):
                orgs_dict[name_id] = org_id
                orgs_sort.append(name_id)
            cache_db.set('org_count', str(org_count))
            for name_id in sorted(orgs_sort):
                cache_db.list_rpush(temp_orgs_sorted_key, orgs_dict[name_id])
                    cache_db.set_add('orgs', org_id)
            cls.sort_orgs_cache()
            cache_db.set('orgs_cached', 't')
 
    @classmethod

src/p/r/pritunl-0.10.9/pritunl/server.py   pritunl(Download)
                reset = True
 
        cache_db.set(self.get_cache_key('ip_pool_cached'), 't')
 
        if reset:
                    cache_db.set_add('servers', server_id)
            cls.sort_servers_cache()
            cache_db.set('servers_cached', 't')
 
    @classmethod

src/p/r/pritunl-HEAD/pritunl/server.py   pritunl(Download)
                reset = True
 
        cache_db.set(self.get_cache_key('ip_pool_cached'), 't')
 
        if reset:
                    cache_db.set_add('servers', server_id)
            cls.sort_servers_cache()
            cache_db.set('servers_cached', 't')
 
    @classmethod

src/p/r/pritunl-HEAD/pritunl/user.py   pritunl(Download)
            str(int(time.time())), code)
        cache_db.expire(self.get_cache_key('otp_cache'), OTP_CACHE_TTL)
        cache_db.set(self.get_cache_key('otp_cache'),
            ','.join((code, remote_ip)))
        return True

src/p/r/pritunl-0.10.9/pritunl/utils.py   pritunl(Download)
            return False
        cache_db.expire(cache_key, int(AUTH_TIME_WINDOW * 2.1))
        cache_db.set(cache_key, auth_timestamp)
 
        auth_token_hash = persist_db.dict_get('auth', 'token')

src/p/r/pritunl-HEAD/pritunl/utils.py   pritunl(Download)
            return False
        cache_db.expire(cache_key, int(AUTH_TIME_WINDOW * 2.1))
        cache_db.set(cache_key, auth_timestamp)
 
        auth_token_hash = persist_db.dict_get('auth', 'token')

src/p/r/pritunl-0.10.9/pritunl/app_server.py   pritunl(Download)
                    localhost_ip = '127.0.0.1'
                cache_db.expire('localhost_ip', LOCALHOST_IP_TTL)
                cache_db.set('localhost_ip', localhost_ip)
            return localhost_ip
        return Config.__getattr__(self, name)

src/p/r/pritunl-HEAD/pritunl/app_server.py   pritunl(Download)
                    localhost_ip = '127.0.0.1'
                cache_db.expire('localhost_ip', LOCALHOST_IP_TTL)
                cache_db.set('localhost_ip', localhost_ip)
            return localhost_ip
        return Config.__getattr__(self, name)

src/p/r/pritunl-0.10.9/pritunl/config.py   pritunl(Download)
 
        if self.cached:
            cache_db.set(self.get_cache_key('cached'), 't')
 
    def commit(self):

  1 | 2  Next