Skip to content

Instantly share code, notes, and snippets.

@binaryphile
Created February 10, 2015 15:15
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 binaryphile/3ae55101d2e1ccdda104 to your computer and use it in GitHub Desktop.
Save binaryphile/3ae55101d2e1ccdda104 to your computer and use it in GitHub Desktop.
def cache
@cache ||= TorqueBox::Infinispan::Cache.new(
name: Settings.torquebox.services.DeviceHeartbeatMonitorService.cache_name,
- persist: Settings.torquebox.services.DeviceHeartbeatMonitorService.cache_persist_directory
+ persist: Settings.torquebox.services.DeviceHeartbeatMonitorService.cache_persist_directory,
+ mode: :replicated,
+ sync: false
Add a comment to this line
)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment