Module ImportFrom alias ImportFrom alias Import alias ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Num decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Num For NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str NameLoad body AugAssignAdd NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad FunctionDef arguments args defaults body Assign NameStore Call AttributeLoad NameLoad attr Num BinOpSub AttributeLoad NameLoad attr Num Assign NameStore BinOpAdd NameLoad Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad AugAssignAdd AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad FunctionDef arguments args defaults body If CompareLt AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list
N/A google.appengine.api memcache google.appengine.ext db N/A random GeneralCounterShardConfig N/A N/A db Model N/A N/A Tracks the number of shards for each named counter. N/A name N/A N/A db StringProperty required True N/A num_shards N/A N/A db IntegerProperty required True default 20 N/A GeneralCounterShard N/A N/A db Model N/A N/A Shards for each named counter N/A name N/A N/A db StringProperty required True N/A count N/A N/A db IntegerProperty required True default 0 N/A get_count N/A N/A name N/A N/A N/A Retrieve the value for a given sharded counter.
  
  Parameters:
    name - The name of the counter  
   N/A total N/A N/A memcache get name N/A N/A total None N/A N/A total 0 N/A counter N/A N/A N/A N/A GeneralCounterShard all filter name =  name N/A N/A total N/A counter count N/A N/A N/A memcache add name N/A str total 60 N/A total N/A increment N/A N/A name N/A N/A N/A Increment the value for a given sharded counter.
  
  Parameters:
    name - The name of the counter  
   N/A config N/A N/A GeneralCounterShardConfig get_or_insert name name name txn N/A N/A N/A N/A N/A index N/A N/A random randint 0 N/A N/A config num_shards 1 N/A shard_name N/A name N/A str index N/A counter N/A N/A GeneralCounterShard get_by_key_name shard_name N/A N/A counter None N/A N/A counter N/A GeneralCounterShard key_name shard_name name name N/A N/A counter count 1 N/A N/A N/A counter put N/A N/A N/A N/A db run_in_transaction txn N/A N/A N/A memcache incr name N/A increase_shards N/A N/A name num N/A N/A N/A Increase the number of shards for a given sharded counter.
  Will never decrease the number of shards.
  
  Parameters:
    name - The name of the counter
    num - How many shards to use
    
   N/A config N/A N/A GeneralCounterShardConfig get_or_insert name name name txn N/A N/A N/A N/A N/A N/A N/A config num_shards num N/A N/A N/A config num_shards num N/A N/A N/A config put N/A N/A N/A N/A db run_in_transaction txn N/A