153154155156157158159160161162
super.close(); String old = store.put( ref, toString() ); if( old != null ) { store.put( ref, old ); throw new EntityAlreadyExistsException( ref ); } } }; }
124125126127128129130131132133134
{ super.close(); String statusCode = jedis.set( ref.identity(), toString(), "NX" ); if( !"OK".equals( statusCode ) ) { throw new EntityAlreadyExistsException( ref ); } } }; }
177178179180181182183184185186