Added documentation.

Bucket and LayeredBucket are no longer exported.
This commit is contained in:
Karl Seguin
2014-11-14 07:56:24 +07:00
parent 3e4d668990
commit df2f8eb082
6 changed files with 79 additions and 32 deletions

View File

@@ -63,8 +63,8 @@ func (_ *BucketTests) ReplaceReplacesThevalue() {
//not sure how to test that the TTL hasn't changed sort of a sleep..
}
func testBucket() *Bucket {
b := &Bucket{lookup: make(map[string]*Item)}
func testBucket() *bucket {
b := &bucket{lookup: make(map[string]*Item)}
b.lookup["power"] = &Item{
key: "power",
value: TestValue("9000"),