001/**
002 *
003 * Copyright (c) 2014, the Railo Company Ltd. All rights reserved.
004 *
005 * This library is free software; you can redistribute it and/or
006 * modify it under the terms of the GNU Lesser General Public
007 * License as published by the Free Software Foundation; either 
008 * version 2.1 of the License, or (at your option) any later version.
009 * 
010 * This library is distributed in the hope that it will be useful,
011 * but WITHOUT ANY WARRANTY; without even the implied warranty of
012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
013 * Lesser General Public License for more details.
014 * 
015 * You should have received a copy of the GNU Lesser General Public 
016 * License along with this library.  If not, see <http://www.gnu.org/licenses/>.
017 * 
018 **/
019package lucee.runtime.cache.eh.remote.rest;
020
021import java.util.Date;
022
023import lucee.commons.io.cache.CacheEntry;
024import lucee.runtime.type.Struct;
025
026public class RESTCacheEntry implements CacheEntry {
027
028        private String key;
029        private Object value;
030
031        public RESTCacheEntry(String key, Object value) {
032                this.key=key;
033                this.value=value;
034        }
035
036        @Override
037        public String getKey() {
038                return key;
039        }
040
041        @Override
042        public Object getValue() {
043                return value;
044        }
045
046        public Date created() {
047                // TODO Auto-generated method stub
048                return null;
049        }
050
051        public Struct getCustomInfo() {
052                // TODO Auto-generated method stub
053                return null;
054        }
055
056        public int hitCount() {
057                // TODO Auto-generated method stub
058                return 0;
059        }
060
061        public long idleTimeSpan() {
062                // TODO Auto-generated method stub
063                return 0;
064        }
065
066        public Date lastHit() {
067                // TODO Auto-generated method stub
068                return null;
069        }
070
071        public Date lastModified() {
072                // TODO Auto-generated method stub
073                return null;
074        }
075
076        public long liveTimeSpan() {
077                // TODO Auto-generated method stub
078                return 0;
079        }
080
081        public long size() {
082                // TODO Auto-generated method stub
083                return 0;
084        }
085
086}