Skip to content

Instantly share code, notes, and snippets.

@ldclakmal
Created June 6, 2020 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ldclakmal/761a35154e3fe3354f3a0122f2ecee48 to your computer and use it in GitHub Desktop.
Save ldclakmal/761a35154e3fe3354f3a0122f2ecee48 to your computer and use it in GitHub Desktop.
Custom Eviction Policy of Ballerina
public type CustomEvictionPolicy object {
*cache:AbstractEvictionPolicy;
public function get(LinkedList list, Node node) {
// custom implementation related to updating the
// `LinkedList` based on the get operation.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment