mirror of
https://github.com/yamadashy/repomix.git
synced 2025-06-11 00:25:54 +03:00
fix(website/server): Remove unused type parameter from CacheEntry interface
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,17 +1,17 @@
|
|||||||
import * as zlib from 'node:zlib';
|
|
||||||
import { promisify } from 'node:util';
|
import { promisify } from 'node:util';
|
||||||
|
import * as zlib from 'node:zlib';
|
||||||
import type { PackOptions } from '../types.js';
|
import type { PackOptions } from '../types.js';
|
||||||
|
|
||||||
const inflateAsync = promisify(zlib.inflate);
|
const inflateAsync = promisify(zlib.inflate);
|
||||||
const deflateAsync = promisify(zlib.deflate);
|
const deflateAsync = promisify(zlib.deflate);
|
||||||
|
|
||||||
interface CacheEntry<T> {
|
interface CacheEntry {
|
||||||
value: Uint8Array; // Compressed data
|
value: Uint8Array; // Compressed data
|
||||||
timestamp: number;
|
timestamp: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class RequestCache<T> {
|
export class RequestCache<T> {
|
||||||
private cache: Map<string, CacheEntry<T>> = new Map();
|
private cache: Map<string, CacheEntry> = new Map();
|
||||||
private readonly ttl: number;
|
private readonly ttl: number;
|
||||||
|
|
||||||
constructor(ttlInSeconds = 60) {
|
constructor(ttlInSeconds = 60) {
|
||||||
|
|||||||
Reference in New Issue
Block a user