Skip to content

itds-ch/grails-cache-guava

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

grails-cache-guava

This Grails plugin extends the grails-cache plugin.

The guava cache provides a simple in memory cache with maximal capacity and TTL.

Usage

Dependency

dependencies {
    compile 'org.grails.plugins:cache:4.0.0'
    compile 'org.grails.plugins:cache-guava:1.0.0'
}

Configuration

grails:
  cache:
    guava:            
      defaultTtl: 3600
      caches:
        message:
          maxCapacity: 5000
          ttl: 60
        maps:
          maxCapacity: 6000
          ttl: 30
        countries:
          maxCapacity: 1000

The GrailsGuavaCacheManager is automatically configured by the plugin.

Annoations and Services

Just use grails-cache's annotations and services as described in its documentation

About

The guava cache provides a simple in memory cache with maximal capacity and TTL.

Resources

Stars

Watchers

Forks

Packages

No packages published