PokIsemaine opened a new issue, #2414:
URL: https://github.com/apache/kvrocks/issues/2414

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/kvrocks/issues) and found no similar issues.
   
   
   ### Motivation
   
   
https://redis.io/docs/latest/develop/interact/programmability/lua-api/#script_flags
   
https://redis.io/docs/latest/develop/interact/programmability/eval-intro/#eval-flags
   
https://redis.io/docs/latest/develop/interact/programmability/functions-intro/#function-flags
   
   It seems that only the name of redis function is supported now, and we can 
support the parsing of some other flags. For example `no-writes`, 
`allow-cross-slot-keys`, etc.
   
   On the one hand, there are already existing requirements issue: 
https://github.com/apache/kvrocks/issues/1884
   
   On the other hand, for the optimization function of Lua script in the 
future, we may need to support some special flags like dragonflydb to enable 
optimization. Relevant information:
   
   https://www.dragonflydb.io/docs/managing-dragonfly/scripting
   
   https://www.dragonflydb.io/blog/leveraging-power-of-lua-scripting
   
   https://github.com/apache/kvrocks/issues/2162
   
   ### Solution
   
   I'm thinking about how to implement it. Generally speaking, the process of 
parsing and obtaining flag should be more general.
   
   ### Are you willing to submit a PR?
   
   - [X] I'm willing to submit a PR!


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to