Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Netflix/EVCache
Browse files Browse the repository at this point in the history
  • Loading branch information
smadappa committed Jul 14, 2016
2 parents 11afa2f + b64ef33 commit 8c4ce3f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public EVCacheRESTService(EVCache.Builder builder) {
public Response setOperation(final InputStream in, @PathParam("appId") String appId, @PathParam("key") String key,
@QueryParam("ttl") String ttl) {
try {
appId = appId.toUpperCase();
byte[] bytes = IOUtils.toByteArray(in);
final EVCache evcache = getEVCache(appId);
if (ttl == null) {
Expand All @@ -69,6 +70,7 @@ public Response setOperation(final InputStream in, @PathParam("appId") String ap
public Response putOperation(final InputStream in, @PathParam("appId") String appId, @PathParam("key") String key,
@QueryParam("ttl") String ttl) {
try {
appId = appId.toUpperCase();
byte[] bytes = IOUtils.toByteArray(in);
final EVCache evcache = getEVCache(appId);
if (ttl == null) {
Expand All @@ -93,6 +95,7 @@ public Response putOperation(final InputStream in, @PathParam("appId") String ap
@Produces({MediaType.APPLICATION_OCTET_STREAM})
public Response getOperation(@PathParam("appId") String appId,
@PathParam("key") String key) {
appId = appId.toUpperCase();
if (logger.isDebugEnabled()) logger.debug("Get for application " + appId + " for Key " + key);
try {
final EVCache evCache = getEVCache(appId);
Expand Down Expand Up @@ -120,6 +123,7 @@ public Response getOperation(@PathParam("appId") String appId,
@Produces("text/plain")
public Response deleteOperation(@PathParam("appId") String appId, @PathParam("key") String key) {
if (logger.isDebugEnabled()) logger.debug("Get for application " + appId + " for Key " + key);
appId = appId.toUpperCase();
final EVCache evCache = getEVCache(appId);
try {
Future<Boolean>[] _future = evCache.delete(key);
Expand Down

0 comments on commit 8c4ce3f

Please sign in to comment.