@Test public void testDelete() { System.out.println("delete"); SpymemcachedSessionDataStorage instance = new SpymemcachedSessionDataStorage(client, IDLE_TIME); SessionData sessionData = instance.create(); String sessionId = sessionData.getId(); sessionData.put(KEY, VALUE); instance.save(sessionData); instance.delete(sessionId); SessionData deleted = instance.get(sessionId); assertNull(deleted); }
@Override public void delete(String sessionId) { this.sessions.delete(sessionId); }
SpymemcachedSessionDataStorage implements SessionDataStorage { @Override public void delete(String sessionId) { this.sessions.delete(sessionId); } }
SpymemcachedSessionDataStorage implements SessionDataStorage { @Override public void delete(String sessionId) { this.sessions.delete(sessionId); } SpymemcachedSessionDataStorage(final MemcachedClient client);  SpymemcachedSessionDataStorage(final MemcachedClient client, int idleTime); }
SpymemcachedSessionDataStorage implements SessionDataStorage { @Override public void delete(String sessionId) { this.sessions.delete(sessionId); } SpymemcachedSessionDataStorage(final MemcachedClient client);  SpymemcachedSessionDataStorage(final MemcachedClient client, int idleTime); @Override SessionData create(); @Override void save(SessionData sessionData); @Override SessionData get(String sessionId); @Override void delete(String sessionId); }
SpymemcachedSessionDataStorage implements SessionDataStorage { @Override public void delete(String sessionId) { this.sessions.delete(sessionId); } SpymemcachedSessionDataStorage(final MemcachedClient client);  SpymemcachedSessionDataStorage(final MemcachedClient client, int idleTime); @Override SessionData create(); @Override void save(SessionData sessionData); @Override SessionData get(String sessionId); @Override void delete(String sessionId);  }