UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

4 lines • 631 B
export declare const DEFAULT_PORT = 6379; export declare const LOOPBACK: ReadonlySet<string>; export declare const TRUNCATE_SCRIPT = "\nif ARGV[3] == '1' and redis.call('EXISTS', KEYS[1]) == 0 then\n return 0\nend\nlocal length = tonumber(ARGV[1])\nlocal current = redis.call('STRLEN', KEYS[1])\nif length == 0 then\n redis.call('SET', KEYS[1], '')\nelseif length > current then\n redis.call('SETRANGE', KEYS[1], length - 1, string.char(0))\nelse\n redis.call('SET', KEYS[1], redis.call('GETRANGE', KEYS[1], 0, length - 1))\nend\nredis.call('SET', KEYS[2], ARGV[2])\nreturn 1\n"; //# sourceMappingURL=constants.d.ts.map