mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-14 19:54:42 +00:00
Commit from m3o/m3o action
This commit is contained in:
3
examples/cache/delete/deleteAValue/main.go
vendored
3
examples/cache/delete/deleteAValue/main.go
vendored
@@ -7,11 +7,12 @@ import (
|
||||
"go.m3o.com/cache"
|
||||
)
|
||||
|
||||
// Delete a value from the cache
|
||||
// Delete a value from the cache. If key not found a success response is returned.
|
||||
func main() {
|
||||
cacheService := cache.NewCacheService(os.Getenv("M3O_API_TOKEN"))
|
||||
rsp, err := cacheService.Delete(&cache.DeleteRequest{
|
||||
Key: "foo",
|
||||
})
|
||||
fmt.Println(rsp, err)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user