Skip to content

Instantly share code, notes, and snippets.

@htormey
Created August 20, 2010 04:31
Show Gist options
  • Save htormey/539605 to your computer and use it in GitHub Desktop.
Save htormey/539605 to your computer and use it in GitHub Desktop.
44 #Set arbitrary limit on how large user_store session can grow to
45 #http://www.mongodb.org/display/DOCS/Capped+Collections
46 #if not conn[self.collection].findOne():
47 if not self.collection in conn:
48 print "Create velruse I get in here"
49 conn.create_collection(self.collection, dict(capped=True, size=100000))
50 return conn
51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment