Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to perform lookup cache for both date and time of day?

My service callout response for token success will look something like this.

{

token : "djjffedafdfrsfsffdsfffffffffffffffffasdaaaaaaa"

expirytime :" 202106:13T05:12:34:455"

}

My question is token expire on particular date and on particular time when i perform a cache lookup for token i have to check both date and time in combination.

  1. How do i add cache in environment configuration?
  2. How could i do this?

So far i have exacted expirytime variable in JS and assigned them as reference in expire time setting in cache policy.

Looking for some direction from experts @Anil Sagar @ Google @Dino-at-Google

0 3 226
3 REPLIES 3