mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-09-17 13:37:26 +03:00
Add a Query Cache Max TTL, Bucket Size, and Bucket Rate Arg/Env options in HasuraPro
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6484 GitOrigin-RevId: 1a060ca8d81f123abaa54a64e905cc8e20b683c7
This commit is contained in:
parent
516fd4e52f
commit
eada60b80d
@ -191,6 +191,12 @@ instance FromEnv Int where
|
||||
Nothing -> Left "Expecting Int value"
|
||||
Just m -> Right m
|
||||
|
||||
instance FromEnv Integer where
|
||||
fromEnv s =
|
||||
case readMaybe s of
|
||||
Nothing -> Left "Expecting Integer value"
|
||||
Just m -> Right m
|
||||
|
||||
instance FromEnv Auth.AdminSecretHash where
|
||||
fromEnv = Right . Auth.hashAdminSecret . Text.pack
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user