Skip to end of metadata
Go to start of metadata

på en eller anden måde må der blive skabt en afhændighed mellem 2 cache lag.
Det er formentligt same same mht til den distribuerede version

Put

Setup

Local 

Local Cache


Local + Cache Loader

 

Local + Cache Store

Now, what happens, if store fails??? still add to local cache, or ignore???
Hvis man er transaktional, sætter vi den vel først ind ved commit alligevel.

Local + Cache

 

 Method

Function 

put

puts it into the local cache and the store, what if rejected by policy?? goto store?
Put int 

putAll

same as put

remove

Removes it from local cache, also from store

putIfAbsent

local cache only

remove

local cache only

replace(2)

local cache only

replace(3)

local cache only

clear

Clears local cache only

pretty dangerous operation...

entrySet

return entries from local cache only

keySet

local cache only

values

same as keySet, entrySet

would be nice with a version where we iterate through all values also them in backend store

isEmpty

local cache only

size

the size of the local cache

equals

N/A

get

return entry from local cache, if not present goto store

hashcode

N/A

containsKey

check local cache only

containsValue

check local cache only

peek

local cache only

Labels
  • None