我正在开发一个Spring应用程序,在这个应用程序中,我将在Redis中插入一个Person对象。现在,当插入对象时,我还需要为检索到的人提供hashCode值。有没有办法,我可以检索Person对象而不传递hashCode,这只是关键部分。请告诉我。以下是插入代码:
插入代码:
Person person = // person retrieved from DB.
this.userAppRegistration.getRedisTemplate().opsForHash().put(String.valueOf(person.getId()),person.hashCode(),pers
我有一个使用counter作为create table命令的列族:(键I使用bigin在查询时进行过滤)。
CREATE TABLE BannerCount (
KEY bigint PRIMARY KEY
) WITH
comment='' AND
comparator=text AND
read_repair_chance=0.100000 AND
gc_grace_seconds=864000 AND
default_validation=counter AND
min_compaction_threshold=4 AND
max_compaction_threshold