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

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

src/p/r/pritunl-0.10.9/pritunl/organization.py   pritunl(Download)
                    client_count += 1
                user_count += 1
                cache_db.list_rpush(self.get_cache_key(temp_users_sorted_key),
                    users_dict[name_id][0])
 
            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.rename(temp_orgs_sorted_key, 'orgs_sorted')
        except:

src/p/r/pritunl-HEAD/pritunl/organization.py   pritunl(Download)
                    client_count += 1
                user_count += 1
                cache_db.list_rpush(self.get_cache_key(temp_users_sorted_key),
                    users_dict[name_id][0])
 
            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.rename(temp_orgs_sorted_key, 'orgs_sorted')
        except:

src/p/r/pritunl-0.10.9/pritunl/server.py   pritunl(Download)
    def push_output(self, output):
        cache_db.list_rpush(self.get_cache_key('output'), output.rstrip('\n'))
        self._event_delay(type=SERVER_OUTPUT_UPDATED, resource_id=self.id)
 
    def get_bandwidth(self, period=None):
                servers_sort.append(name_id)
            for name_id in sorted(servers_sort):
                cache_db.list_rpush(temp_sorted_key, servers_dict[name_id])
            cache_db.rename(temp_sorted_key, 'servers_sorted')
        except:

src/p/r/pritunl-HEAD/pritunl/server.py   pritunl(Download)
    def push_output(self, output):
        cache_db.list_rpush(self.get_cache_key('output'), output.rstrip('\n'))
        self._event_delay(type=SERVER_OUTPUT_UPDATED, resource_id=self.id)
 
    def get_bandwidth(self, period=None):
                servers_sort.append(name_id)
            for name_id in sorted(servers_sort):
                cache_db.list_rpush(temp_sorted_key, servers_dict[name_id])
            cache_db.rename(temp_sorted_key, 'servers_sorted')
        except:

src/p/r/pritunl-0.10.9/pritunl/utils.py   pritunl(Download)
 
        key_exists = cache_db.exists(cache_key)
        cache_db.list_rpush(cache_key, '')
        if not key_exists:
            cache_db.expire(cache_key, 20)

src/p/r/pritunl-HEAD/pritunl/utils.py   pritunl(Download)
 
        key_exists = cache_db.exists(cache_key)
        cache_db.list_rpush(cache_key, '')
        if not key_exists:
            cache_db.expire(cache_key, 20)