Initial commit

This commit is contained in:
2023-08-24 23:40:31 +03:00
commit 49c962e13c
32 changed files with 1360 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
package inmemorycache
type Cache map[uint64][]string
func (c Cache) Get(id uint64) []string {
return c[id]
}
func (c Cache) Append(id uint64, ip string) {
c[id] = append(c[id], ip)
}