1 package org.gffs.cache;
4 * Copyright 2006 University of Virginia
6 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may
7 * obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
13 * and limitations under the License.
17 class LRUList<KeyType, DataType> extends CacheList<KeyType, DataType>
21 super(RoleBasedCacheNode.ROLE_LRU);
25 public void insert(RoleBasedCacheNode<KeyType, DataType> node)
27 // LRU inserts ALWAYS go at the tail
33 _tail.setNext(_myRole, node);
34 node.setPrevious(_myRole, _tail);
38 public void noteUse(RoleBasedCacheNode<KeyType, DataType> node)