Subversion Repositories SmartDukaan

Rev

Rev 15030 | Rev 15033 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15030 Rev 15031
Line 81... Line 81...
81
        System.out.println("populating cache");
81
        System.out.println("populating cache");
82
        Object cacheValue = memcachedClient.get(KEY);
82
        Object cacheValue = memcachedClient.get(KEY);
83
        HashMap<String, String> supcMap = new HashMap<String, String>();
83
        HashMap<String, String> supcMap = new HashMap<String, String>();
84
        if (cacheValue != null) {
84
        if (cacheValue != null) {
85
            supcMap=(HashMap<String, String>)cacheValue;
85
            supcMap=(HashMap<String, String>)cacheValue;
86
            supcMap.put(supc, color);
-
 
87
        }
-
 
88
        else{
-
 
89
            supcMap.put(supc, color);
-
 
90
        }
86
        }
-
 
87
        supcMap.put(supc, color);
91
        memcachedClient.set(KEY, supcMap);
88
        memcachedClient.set(KEY, supcMap);
92
    }
89
    }
93
 
90
 
94
    private boolean checkCache(){
91
    private boolean checkCache(){
95
        if (supc!=null){
92
        if (supc!=null){