All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.launchkey.sdk.cache.JavaxCache Maven / Gradle / Ivy

Go to download

SDK for interacting with the LaunchKey distributed authentication and authorization platform

The newest version!
/**
 * Copyright 2017 iovation, Inc.
 * 

* Licensed under the MIT License. * You may not use this file except in compliance with the License. * A copy of the License is located in the "LICENSE.txt" file accompanying * this file. This file is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.launchkey.sdk.cache; public class JavaxCache implements Cache { private final javax.cache.Cache store; public JavaxCache(javax.cache.Cache store) { this.store = store; } @Override public String get(String key) throws CacheException { try { return store.get(key); } catch (Exception e) { throw new CacheException("Cache error on get!", e); } } @Override public void put(String key, String value) throws CacheException { try { store.put(key, value); } catch (Exception e) { throw new CacheException("Cache error on put!", e); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy