001package io.ebean.cache; 002 003/** 004 * The type of L2 caches. 005 */ 006public enum ServerCacheType { 007 008 /** 009 * Bean cache. 010 */ 011 BEAN("_B"), 012 013 /** 014 * Natural key cache. 015 */ 016 NATURAL_KEY("_N"), 017 018 /** 019 * Collection Ids for Many properties. 020 */ 021 COLLECTION_IDS("_C"), 022 023 /** 024 * Query cache. 025 */ 026 QUERY("_Q"); 027 028 private final String code; 029 030 ServerCacheType(String code) { 031 this.code = code; 032 } 033 034 public String code(){ 035 return code; 036 } 037}