{"modulePath":"github.com/CORESTOREIO/CSFW","version":"v0.0.0-20230101183712-202847b4b89b","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package objcacheredis\n\n## Functions\n\n```go\nfunc NewRedisByURLClient[K comparable](rawURL string) objcache.NewStorageFn[K]\n```\nNewRedisByURLClient connects to a Redis server at the given URL using the HTTP URI scheme. URLs should follow the draft IANA specification for the scheme ([https://www.iana.org/assignments/uri-schemes/prov/redis](https://www.iana.org/assignments/uri-schemes/prov/redis)). This option function sets the connection as cache backend to the Service.\n\nOn error, while parsing the rawURL, this function will leak sensitive data, for now.\n\nFor example:\n\n\tredis://localhost:6379/?db=3\n\tredis://localhost:6379/?max_active=50\u0026max_idle=5\u0026idle_timeout=10s\u0026max_conn_lifetime=1m\u0026key_prefix=xcache_\n\n```go\nfunc NewRedisClient[K comparable](pool *redis.Pool, ro *RedisOption) objcache.NewStorageFn[K]\n```\nNewRedisClient connects to the Redis server and does a ping to check if the connection works correctly.\n\n## Types\n\n```go\ntype RedisOption struct {\n\tKeyPrefix string\n}\n```\nRedisOption applies several options for the Redis client.\n\n","path":"github.com/CORESTOREIO/CSFW/storage/objcache/objcacheredis","name":"objcacheredis","synopsis":"","isRedistributable":true}
