UNPKG

@quell/server

Version:

Quell is an open-source NPM package providing a light-weight caching layer implementation and cache invalidation for GraphQL responses on both the client- and server-side. Use Quell to prevent redundant client-side API requests and to minimize costly serv

2 lines 1.85 kB
export declare const envTemplate = "# Environment variables for Quell GraphQL caching configuration\n# See the documentation for more detail: https://github.com/open-source-labs/Quell\n\n# Redis connection configuration\n# For local Redis: redis://localhost:6379\n# For Redis Cloud: redis://default:password@redis-12345.c1.us-east-1.aws.cloud.redislabs.com:12345\nREDIS_HOST=127.0.0.1\nREDIS_PORT=6379\n# REDIS_PASSWORD=\"\" # Uncomment and set if your Redis instance requires authentication\n\n# Cache configuration\n# Time in seconds before cached entries expire (default: 1209600 = 14 days)\nCACHE_EXPIRATION=1209600\n\n# Cost limiting parameters (optional - uncomment ALL to enable cost limiting)\n# If you enable cost limiting, ALL parameters below must be uncommented and configured\n# MAX_COST=5000 # Maximum cost allowed before rejecting a query\n# MUTATION_COST=5 # Cost of a mutation operation\n# OBJECT_COST=2 # Cost of retrieving an object\n# SCALAR_COST=1 # Cost of retrieving a scalar value\n# DEPTH_COST_FACTOR=1.5 # Multiplicative cost factor for each depth level\n# MAX_DEPTH=10 # Maximum query depth allowed\n# IP_RATE=3 # Requests allowed per second per IP\n\n\n# Server configuration (optional)\n# PORT=4000 # GraphQL server port\n# NODE_ENV=development\n\n# Example Redis connection strings for popular providers:\n# Redis Cloud: REDIS_URL=\"redis://default:your-password@redis-12345.c1.us-east-1.aws.cloud.redislabs.com:12345\"\n# Upstash: REDIS_URL=\"redis://default:your-password@fly-redis.upstash.io:6379\"\n# Railway: REDIS_URL=\"redis://default:your-password@containers-us-west-123.railway.app:6379\"\n# Heroku Redis: REDIS_URL=\"redis://h:password@ec2-12-345-678-90.compute-1.amazonaws.com:12345\"\n"; //# sourceMappingURL=env.template.d.ts.map