Created
June 6, 2020 15:02
-
-
Save ldclakmal/2b0015cc6b060c8787add10af8024fe9 to your computer and use it in GitHub Desktop.
Cache Configuration of Ballerina
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public type CacheConfig record {| | |
int capacity = 100; | |
AbstractEvictionPolicy evictionPolicy = new LruEvictionPolicy(); | |
float evictionFactor = 0.25; | |
int defaultMaxAgeInSeconds = -1; | |
int cleanupIntervalInSeconds?; | |
|}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment