Skip to content

Instantly share code, notes, and snippets.

View superkelvint's full-sized avatar

Kelvin Tan superkelvint

View GitHub Profile
### Keybase proof
I hereby claim:
* I am superkelvint on github.
* I am kelvint (https://keybase.io/kelvint) on keybase.
* I have a public key ASBACa28lGHskodNNIEasginuCLJ9pslPWDyVGriOKgbywo
### Keybase proof
I hereby claim:
* I am superkelvint on github.
* I am superk (https://keybase.io/superk) on keybase.
* I have a public key ASAvQ4d_5w0TqEfZx7xLxtM_pZIUbDeDeM5RQQDT7YtNiwo
To claim this, I am signing this object:
@superkelvint
superkelvint / lmdbcache.py
Last active October 31, 2016 06:49
LMDB backend for requests-cache which performs zlib compression
# coding=utf-8
from collections import MutableMapping
import lmdb
import requests_cache
from requests_cache.backends import BaseCache
try:
import cPickle as pickle
except ImportError:
import pickle