Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

About KVCache.addListener #160

Closed
zjfplayer opened this issue Sep 12, 2016 · 0 comments
Closed

About KVCache.addListener #160

zjfplayer opened this issue Sep 12, 2016 · 0 comments

Comments

@zjfplayer
Copy link

zjfplayer commented Sep 12, 2016

My test code:

String root = "test1";
    KVCache nc = KVCache.newCache(
            kvClient, root, 10
        );

nc.addListener(new ConsulCache.Listener<String, Value>() {
            public void notify(Map<String, Value> newValues) {
                for(String key:newValues.keySet()){
        System.out.println("1==="+newValues.get(key).getKey()+":"+newValues.get(key).getValueAsString().get());
                }
            }
        });
        nc.start();

I suppose newValues will contains keys like "test1","test1/",but why newValues contains keys like "test1*/",is it bug?

@rickfast rickfast closed this as completed Feb 1, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants