(String key)
| 61 | } |
| 62 | |
| 63 | public Config query(String key) throws Exception { |
| 64 | List<Config> ret = cache.query("query", key); |
| 65 | if (ret != null) { |
| 66 | |
| 67 | return ret.get(0); |
| 68 | } |
| 69 | |
| 70 | Config config = dao.queryForId(key); |
| 71 | |
| 72 | cache.set("query", key, config); |
| 73 | return config; |
| 74 | } |
| 75 | |
| 76 | public List<Config> queryAll() throws Exception { |
| 77 | List<Config> ret = cache.query("queryAll", 0); |
no test coverage detected