Skip to content

Commit

Permalink
Merge pull request #10814 from thingsboard/fix/mobile-secret-cache
Browse files Browse the repository at this point in the history
Fix MobileSecretRedisCache
  • Loading branch information
ViacheslavKlimov authored May 17, 2024
2 parents a32c0f6 + 5467903 commit e755d00
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@
import org.thingsboard.server.cache.TBRedisCacheConfiguration;
import org.thingsboard.server.cache.TbJsonRedisSerializer;
import org.thingsboard.server.common.data.CacheConstants;
import org.thingsboard.server.common.data.id.UserId;
import org.thingsboard.server.common.data.security.model.JwtPair;

@ConditionalOnProperty(prefix = "cache", value = "type", havingValue = "redis")
@Service("MobileSecretCache")
public class MobileSecretRedisCache extends RedisTbTransactionalCache<UserId, JwtPair> {
public class MobileSecretRedisCache extends RedisTbTransactionalCache<String, JwtPair> {

public MobileSecretRedisCache(TBRedisCacheConfiguration configuration, CacheSpecsMap cacheSpecsMap, RedisConnectionFactory connectionFactory) {
super(CacheConstants.MOBILE_SECRET_KEY_CACHE, cacheSpecsMap, connectionFactory, configuration, new TbJsonRedisSerializer<>(JwtPair.class));
Expand Down

0 comments on commit e755d00

Please sign in to comment.