package Ġme . me li jn . me lij nb ot . database . verification Ċ Ċ import Ġme . me li jn . me lij nb ot . database . HIG HER _ CACHE Ċ import Ġme . me li jn . me lij nb ot . database . NORMAL _ CACHE Ċ Ċ class ĠVerification User Flow Rate Wrapper ( private Ġval Ġverification User Flow Rate Dao : ĠVerification User Flow Rate Dao ) Ġ{ ĊĊĊĠĠĠ Ġsuspend Ġfun Ġget Flow Rate ( guild Id : ĠLong ): ĠLong Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġcached Ġ= Ġverification User Flow Rate Dao . getCache Entry ( guild Id , ĠH IG HER _ CACHE )?. let Ġ{ Ġit . to Long () Ġ} ĊĠĠĠĠĠĠĠ Ġif Ġ( cached Ġ!= Ġnull ) Ġreturn Ġcached ĊĊĠĠĠĠĠĠĠ Ġval Ġflow Rate Ġ= Ġverification User Flow Rate Dao . get ( guild Id ) ĊĠĠĠĠĠĠĠ Ġverification User Flow Rate Dao . set Cache Entry ( guild Id , Ġflow Rate , ĠNORMAL _ CACHE ) ĊĠĠĠĠĠĠĠ Ġreturn Ġflow Rate ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun ĠsetUser Flow Rate ( guild Id : ĠLong , Ġrate : ĠLong ) Ġ{ ĊĠĠĠĠĠĠĠ Ġverification User Flow Rate Dao . set Cache Entry ( guild Id , Ġrate , ĠNORMAL _ CACHE ) ĊĠĠĠĠĠĠĠ Ġverification User Flow Rate Dao . set ( guild Id , Ġrate ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġremove Flow Rate ( guild Id : ĠLong ) Ġ{ ĊĠĠĠĠĠĠĠ Ġverification User Flow Rate Dao . set Cache Entry ( guild Id , Ġ- 1 , ĠNORMAL _ CACHE ) ĊĠĠĠĠĠĠĠ Ġverification User Flow Rate Dao . remove ( guild Id ) ĊĠĠĠ Ġ} Ċ }