We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7859430 commit d09c099Copy full SHA for d09c099
fastcache_test.go
@@ -225,6 +225,14 @@ func TestCacheKeys(t *testing.T) {
225
t.Fatalf("failed to retrievs keys by pattern: \"%s\"", tt.Pattern)
226
}
227
228
+
229
+ result, err := c.Keys("*")
230
+ if result != nil {
231
+ t.Fatal("expected no matches")
232
+ }
233
+ if err == nil {
234
+ t.Fatal("expected regex error")
235
236
237
238
func testCacheGetSet(c *Cache, itemsCount int) error {
0 commit comments