You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by km...@apache.org on 2018/04/20 20:42:25 UTC
[geode] branch feature/GEODE-4997 updated: GEODE-4997 WIP Add info
on cache loaders for inline caches
This is an automated email from the ASF dual-hosted git repository.
kmiller pushed a commit to branch feature/GEODE-4997
in repository https://gitbox.apache.org/repos/asf/geode.git
The following commit(s) were added to refs/heads/feature/GEODE-4997 by this push:
new b3ac9a8 GEODE-4997 WIP Add info on cache loaders for inline caches
b3ac9a8 is described below
commit b3ac9a8c2b2e914eb68969736d956ab193727bcf
Author: Karen Miller <km...@pivotal.io>
AuthorDate: Fri Apr 20 13:41:40 2018 -0700
GEODE-4997 WIP Add info on cache loaders for inline caches
---
geode-docs/use_cases/inline-cache.html.md.erb | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
diff --git a/geode-docs/use_cases/inline-cache.html.md.erb b/geode-docs/use_cases/inline-cache.html.md.erb
index 1a2bab3..340231b 100644
--- a/geode-docs/use_cases/inline-cache.html.md.erb
+++ b/geode-docs/use_cases/inline-cache.html.md.erb
@@ -24,8 +24,8 @@ An inline cache holds region entries for a client application.
An inline cache holds data for quick access.
The inline cache comprises
-a Geode region together with code deployed to servers that host
-the region.
+a <%=vars.product_name%> region together with code deployed
+to servers that host the region.
The inline cache sits between the client application and a
backing data store.
The server-deployed code communicates with the backend data store.
@@ -42,8 +42,20 @@ If the requested region entry is not in the region,
it is a cache miss,
and the code deployed to the server acquires the
entry from the data store.
-<GEODE> writes the
-acquired region entry to the region
+<%=vars.product_name%> writes the acquired region entry to the region
such that future lookups will cause a cache hit.
## Implementation and Configuration
+
+Implement the `CacheLoader` interface to handle cache read misses.
+A get operation that causes a miss invokes
+the `CacheLoader.load` method.
+This method is expected to return the value associated with the
+cache miss.
+Therefore, the implementation must acquire the value.
+Upon return from the `CacheLoader.load` method,
+the `get` operation places the key/value into the region
+before it completes by returning the value.
+See details about cache loaders at
+[Implement a Data Loader](../developing/outside_data_sources/implementing_data_loaders.html).
+
--
To stop receiving notification emails like this one, please contact
kmiller@apache.org.