Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (7 sloc) 381 Bytes
{{ 'command' | importRequestParams }}
{{ { command } | ensureAllArgsNotEmpty }}
{{ ['flush','monitor','brpop','blpop'] | any => contains(lower(command), it)
| assignTo: illegalCommand }}
{{ illegalCommand ? throwArgumentException('Command is not allowed.') : null }}
{{ command | redisCall | assignTo: contents }}
{{ contents | return({ 'Content-Type': 'text/plain' }) }}
You can’t perform that action at this time.