@@ -141,7 +141,9 @@ pub(crate) fn default_hints() -> HashSet<CommandHint> {
141141 set. insert ( CommandHint :: new ( "ttl key" , "ttl " ) ) ;
142142 set. insert ( CommandHint :: new ( "replicaof host port" , "replicaof " ) ) ;
143143 set. insert ( CommandHint :: new ( "lpush key value [value ...]" , "lpush " ) ) ;
144+ set. insert ( CommandHint :: new ( "lpushx key value [value ...]" , "lpushx " ) ) ;
144145 set. insert ( CommandHint :: new ( "rpush key value [value ...]" , "rpush " ) ) ;
146+ set. insert ( CommandHint :: new ( "rpushx key value [value ...]" , "rpushx " ) ) ;
145147
146148 set
147149}
@@ -185,10 +187,19 @@ pub(crate) fn dynamic_hints() -> HashMap<&'static str, Vec<DynamicHint>> {
185187 "lpush" ,
186188 vec ! [ hint!( "key value [value ...]" , 0 , repeat) , hint!( "[value ...]" , 1 , repeat) ] ,
187189 ) ;
190+ map. insert (
191+ "lpushx" ,
192+ vec ! [ hint!( "key value [value ...]" , 0 , repeat) , hint!( "[value ...]" , 1 , repeat) ] ,
193+ ) ;
188194 map. insert (
189195 "rpush" ,
190196 vec ! [ hint!( "key value [value ...]" , 0 , repeat) , hint!( "[value ...]" , 1 , repeat) ] ,
191197 ) ;
198+
199+ map. insert (
200+ "rpushx" ,
201+ vec ! [ hint!( "key value [value ...]" , 0 , repeat) , hint!( "[value ...]" , 1 , repeat) ] ,
202+ ) ;
192203 map. insert ( "replicaof" , vec ! [ hint!( "host port" , 0 ) , hint!( "port" , 1 ) ] ) ;
193204
194205 map
0 commit comments