MCPcopy
hub / github.com/unkeyed/unkey / Close

Method Close

pkg/counter/interface.go:146–146  ·  view source on GitHub ↗

Close releases any resources held by the counter implementation. After calling Close(), the counter instance should not be used again. Returns: - error: Any errors that occurred during shutdown

()

Source from the content-addressed store, hash-verified

144 // Returns:
145 // - error: Any errors that occurred during shutdown
146 Close() error
147}
148
149// Middleware defines a function type that wraps a Counter with additional functionality.

Callers 12

newTestHarnessFunction · 0.95
CloseMethod · 0.65
TestMemoryCounter_CloseFunction · 0.65
TestRedisCounterFunction · 0.65
TestRedisCounterMultiGetFunction · 0.65
TestRedisCounterDeleteFunction · 0.65
mainFunction · 0.65
SaveFunction · 0.65

Implementers 3

redisCounterpkg/counter/redis.go
memoryCounterpkg/counter/memory.go
mockCounterinternal/services/ratelimit/service_be

Calls

no outgoing calls

Tested by 9

newTestHarnessFunction · 0.76
TestMemoryCounter_CloseFunction · 0.52
TestRedisCounterFunction · 0.52
TestRedisCounterMultiGetFunction · 0.52
TestRedisCounterDeleteFunction · 0.52