CursorCache is the interface for MCP cursor caching It maps short numeric IDs to encrypted cursor strings for LLM-friendly pagination
| 15 | // CursorCache is the interface for MCP cursor caching |
| 16 | // It maps short numeric IDs to encrypted cursor strings for LLM-friendly pagination |
| 17 | type CursorCache interface { |
| 18 | // Set stores a cursor and returns a short numeric ID |
| 19 | Set(ctx context.Context, cursor string) (uint64, error) |
| 20 | |
| 21 | // Get retrieves a cursor by its numeric ID |
| 22 | Get(ctx context.Context, id uint64) (string, error) |
| 23 | |
| 24 | // Close releases resources |
| 25 | Close() error |
| 26 | } |
| 27 | |
| 28 | // Redis key prefixes for cursor cache |
| 29 | const ( |
no outgoing calls
no test coverage detected