public void shotCacheName ( String cacheName ) { //reset cache if ( StrKit . notBlank ( cacheName ) && ! cacheName . equals ( this . cacheName ) ) { GlobalSyncRedis . removeSyncCache ( this . cacheName ) ; } this . cacheName = cacheName ; //auto open sync to redis this . syncToRedis = true ; //update model redis mapping ModelRedisMapping . me ( ) . put ( this . tableName ( ) , this . cacheName ) ; }
shot cache s name . if current cacheName ! = the old cacheName will reset old cache update cache use the current cacheName and open syncToRedis .