nameqxq opened a new issue #2852: When I expand the ShardingKeyGenerator 
myself, i want to have TableRule in ShardingKeyGenerator#generateKey
URL: https://github.com/apache/incubator-shardingsphere/issues/2852
 
 
   ## Feature Request
   
   **For English only**, other languages will not accept.
   
   Please pay attention on issues you submitted, because we maybe need more 
details. 
   If no response **more than 7 days** and we cannot make decision by current 
information, we will **close it**.
   
   Please answer these questions before submitting your issue. Thanks!
   
   ### Is your feature request related to a problem?
   
   ### Describe the feature you would like.
   #### When I expand the ShardingKeyGenerator myself, i want to have TableRule 
in ShardingKeyGenerator#generateKey
   
   ``` java
       @Override
       public Comparable<?> generateKey() {
           /*
            * i want to have TableRule in this method
            * then i can do like this:
            *
            * redisTemplate.opsForValue().increment("$logicTableName:key", 1);
            *
            * or other special rules;
            * now i must create a special XxxRedisKeyGenerator for every 
logicTable
            */
           return redisTemplate.opsForValue().increment("test:key", 1);
       }
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to