Skip to content

Instantly share code, notes, and snippets.

@BowlingX
Created October 22, 2012 19:24
Show Gist options
  • Save BowlingX/3933516 to your computer and use it in GitHub Desktop.
Save BowlingX/3933516 to your computer and use it in GitHub Desktop.
Hazelcast Map Configuration
<!-- Session Storage: -->
<map name="shiro-activeSessionCache">
<backup-count>1</backup-count>
<!-- Delete Sessions after one Hour if no access -->
<!-- https://groups.google.com/forum/?fromgroups=#!topic/hazelcast/iScOrTaSJbA -->
<max-idle-seconds>3600</max-idle-seconds>
<eviction-policy>LRU</eviction-policy>
<map-store enabled="true">
<!--
Name of the class implementing MapLoader and/or MapStore.
The class should implement at least of these interfaces and
contain no-argument constructor. Note that the inner classes are not supported.
-->
<class-name>com.bowlingx.model.HazelcastMongoDbSessionStore</class-name>
<!--
Number of seconds to delay to call the MapStore.store(key, value).
If the value is zero then it is write-through so MapStore.store(key, value)
will be called as soon as the entry is updated.
Otherwise it is write-behind so updates will be stored after write-delay-seconds
value by calling Hazelcast.storeAll(map). Default value is 0.
-->
<write-delay-seconds>0</write-delay-seconds>
</map-store>
</map>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment