As far as I could understand, basically I must implement the Bucket interface[1]? I don't if that will work, since I'm storing things in a somewhat different manner, but it's definitely worth examining.
[1]: https://github.com/couchbase/sg-bucket/blob/master/bucket.go