Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 399
Zeile 103... Zeile 103...
103
 
103
 
104
    /**
104
    /**
105
     * Get the value of the given hash fields.
105
     * Get the value of the given hash fields.
106
     *
106
     *
107
     * @param  string  $key
107
     * @param  string  $key
108
     * @param  mixed  $dictionary
108
     * @param  mixed  ...$dictionary
109
     * @return array
109
     * @return array
110
     */
110
     */
111
    public function hmget($key, ...$dictionary)
111
    public function hmget($key, ...$dictionary)
112
    {
112
    {
Zeile 119... Zeile 119...
119
 
119
 
120
    /**
120
    /**
121
     * Set the given hash fields to their respective values.
121
     * Set the given hash fields to their respective values.
122
     *
122
     *
123
     * @param  string  $key
123
     * @param  string  $key
124
     * @param  mixed  $dictionary
124
     * @param  mixed  ...$dictionary
125
     * @return int
125
     * @return int
126
     */
126
     */
127
    public function hmset($key, ...$dictionary)
127
    public function hmset($key, ...$dictionary)
128
    {
128
    {
Zeile 164... Zeile 164...
164
    }
164
    }
Zeile 165... Zeile 165...
165
 
165
 
166
    /**
166
    /**
167
     * Removes and returns the first element of the list stored at key.
167
     * Removes and returns the first element of the list stored at key.
168
     *
168
     *
169
     * @param  mixed  $arguments
169
     * @param  mixed  ...$arguments
170
     * @return array|null
170
     * @return array|null
171
     */
171
     */
172
    public function blpop(...$arguments)
172
    public function blpop(...$arguments)
173
    {
173
    {
Zeile 177... Zeile 177...
177
    }
177
    }
Zeile 178... Zeile 178...
178
 
178
 
179
    /**
179
    /**
180
     * Removes and returns the last element of the list stored at key.
180
     * Removes and returns the last element of the list stored at key.
181
     *
181
     *
182
     * @param  mixed  $arguments
182
     * @param  mixed  ...$arguments
183
     * @return array|null
183
     * @return array|null
184
     */
184
     */
185
    public function brpop(...$arguments)
185
    public function brpop(...$arguments)
186
    {
186
    {
Zeile 203... Zeile 203...
203
 
203
 
204
    /**
204
    /**
205
     * Add one or more members to a sorted set or update its score if it already exists.
205
     * Add one or more members to a sorted set or update its score if it already exists.
206
     *
206
     *
207
     * @param  string  $key
207
     * @param  string  $key
208
     * @param  mixed  $dictionary
208
     * @param  mixed  ...$dictionary
209
     * @return int
209
     * @return int
210
     */
210
     */
211
    public function zadd($key, ...$dictionary)
211
    public function zadd($key, ...$dictionary)
212
    {
212
    {
Zeile 424... Zeile 424...
424
    /**
424
    /**
425
     * Evaluate a LUA script serverside, from the SHA1 hash of the script instead of the script itself.
425
     * Evaluate a LUA script serverside, from the SHA1 hash of the script instead of the script itself.
426
     *
426
     *
427
     * @param  string  $script
427
     * @param  string  $script
428
     * @param  int  $numkeys
428
     * @param  int  $numkeys
429
     * @param  mixed  $arguments
429
     * @param  mixed  ...$arguments
430
     * @return mixed
430
     * @return mixed
431
     */
431
     */
432
    public function evalsha($script, $numkeys, ...$arguments)
432
    public function evalsha($script, $numkeys, ...$arguments)
433
    {
433
    {
434
        return $this->command('evalsha', [
434
        return $this->command('evalsha', [
Zeile 439... Zeile 439...
439
    /**
439
    /**
440
     * Evaluate a script and return its result.
440
     * Evaluate a script and return its result.
441
     *
441
     *
442
     * @param  string  $script
442
     * @param  string  $script
443
     * @param  int  $numberOfKeys
443
     * @param  int  $numberOfKeys
444
     * @param  dynamic  $arguments
444
     * @param  dynamic  ...$arguments
445
     * @return mixed
445
     * @return mixed
446
     */
446
     */
447
    public function eval($script, $numberOfKeys, ...$arguments)
447
    public function eval($script, $numberOfKeys, ...$arguments)
448
    {
448
    {
449
        return $this->command('eval', [$script, $arguments, $numberOfKeys]);
449
        return $this->command('eval', [$script, $arguments, $numberOfKeys]);