title: How can i solve " Predis\ClientException : Command 'EXiSTS' is not a registered Redis command. " error?
body: <p>I use redis class in the my custom provider but doesn't work on the server .</p>
  
  <p>There aren't any problems on the local but i didn't understand why it doesn't work on the server. </p>
  
  <p>When i use artisan commands i get this error.</p>
  
  <p>" Predis\ClientException  : Command 'EXiSTS' is not a registered Redis command.</p>
  
  <p>at /var/www/vhosts/website.com/laravel_folder/website/vendor/predis/predis/src/Profile/RedisProfile.php:88
      84|     {
      85|         $commandID = strtoupper($commandID);
      86|
      87|         if (!isset($this->commands[$commandID])) {</p>
  
  <blockquote>
    <p>88|             throw new ClientException("Command '$commandID' is not a registered Redis command.");
        89|         }
        90|
        91|         $commandClass = $this->commands[$commandID];
        92|         $command = new $commandClass();</p>
  </blockquote>
  
  <p>Exception trace:</p>
  
  <p>1   Predis\Profile\RedisProfile::createCommand("EXiSTS")
        /var/www/vhosts/website.com/laravel_folder/website/vendor/predis/predis/src/Client.php:323</p>
  
  <p>2   Predis\Client::createCommand("exists")
        /var/www/vhosts/website.com/laravel_folder/website/vendor/predis/predis/src/Client.php:314</p>
  
  <p>Please use the argument -v to see more details. 
  "</p>
  
  <p>My code : </p>
  
  <pre><code>public function boot()
      {
          $redis = new Redis();
  
          if ( !$redis-&gt;exists('activity_of_week') ) {
              $redis-&gt;set('activity_of_week',serialize( Activity::ofWeek(10) ));
          }
  
          if ( !$redis-&gt;exists('popular_companies') ) {
              $redis-&gt;set('popular_companies',serialize( TopRateCompanies::sortBy()-&gt;take(10) ));
          }
  
          $activityOfWeeks = $redis-&gt;get('activity_of_week');
          $popularCompanies = $redis-&gt;get('popular_companies');
  
          $popular = new PopularCategory();
          $popularCategories = $popular-&gt;take(10);
  
          View::composer('frontend.layout.footer', function ($view) use ($activityOfWeeks, $popularCompanies, $popularCategories) {
              /**
               * @var ViewAlias $view
               */
  
               $keys = [  'email'         =&gt; 'contact-email',
                          'facebook'      =&gt; 'facebook',
                          'instagram'     =&gt; 'instagram',
                          'twitter'       =&gt; 'twitter',
                          'youtube'       =&gt; 'youtube',
                          'phone'         =&gt; 'contact-phone',
                      ];
  
              $info = array_map( [$this,'contactInfo'],$keys );
  
              $view-&gt;with('contact', $info)
                      -&gt;with('activityOfWeeks', $activityOfWeeks)
                      -&gt;with('popularCompanies', $popularCompanies)
                      -&gt;with('popularCategories', $popularCategories);
          });
      }
  
      public function contactInfo($key)
      {
          return Settings::where('key',$key)-&gt;firstOrFail()-&gt;value;
      }
  </code></pre>
  
  <p>Help me please .</p>