MemCached Configuration #61948
Petersdavis
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Non-Goals
Background
I am using nextJs with firebase experimental web-frameworks. We have blog content that changes so we need to dynamically generate SSRs at runtime, but it doesn't change with high frequency and the compute demands of the SSRs are pretty costly.
Basically it seems like our options are to wrap the cloud-functions in a load balancer or to make contribution to firebase-frameworks or nextJS. Since NextJS is at the bottom of the stack I thought it would be good to gauge intrest in configuring it here because it could potentially benefit the most people.
Is this something that the community would appreciate?
Proposal
I'm willing to create a PR for this feature, but I've never contributed to NextJS before so would appreciate any guidelines or advice.
I think it would be parameterized in the config file:
const nextConfig = {
ssrCaching: {
driver: "memcache" | "redis"
conn: {
url: "",
auth: {
type: "username.password",
username: "",
passwordVariable: "MEMCACHE_PWD" // i.e. process.env.MEMCACHE_PWD
}
strategy: "route"
ttl: "86400" //seconds
}
}
Beta Was this translation helpful? Give feedback.
All reactions