Last active
August 29, 2015 14:06
-
-
Save anandkunal/2b656aa141ad45e6be82 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type ( | |
RPC struct { | |
cache map[string]string | |
requests *Requests | |
mu *sync.RWMutex | |
} | |
CacheItem struct { | |
Key string | |
Value string | |
} | |
Requests struct { | |
Get uint64 | |
Put uint64 | |
Delete uint64 | |
Clear uint64 | |
} | |
) | |
var ( | |
NotFoundError = errors.New("Cache key not found") | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment