We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 163411e commit 87004d7Copy full SHA for 87004d7
extensions/modules/cache/src/main/java/org/exist/xquery/modules/cache/Cache.java
@@ -57,7 +57,11 @@ public CacheConfig getConfig() {
57
}
58
59
public Sequence put(final String key, final Sequence value) {
60
- return store.asMap().put(key, value);
+ final Sequence previous = store.asMap().put(key, value);
61
+ if (previous != null) {
62
+ return previous;
63
+ }
64
+ return Sequence.EMPTY_SEQUENCE;
65
66
67
public Sequence list(final String[] keys) throws XPathException {
0 commit comments