original_string: public function check_lock_state($key) {
          $key = $this->parse_key($key);
          if ($this->nativelocking) {
              return $this->get_store()->check_lock_state($key, $this->get_identifier());
          } else {
              $this->ensure_cachelock_available();
              return $this->cachelockinstance->check_state($key, $this->get_identifier());
          }
      }
code: public function check_lock_state($key) {
          $key = $this->parse_key($key);
          if ($this->nativelocking) {
              return $this->get_store()->check_lock_state($key, $this->get_identifier());
          } else {
              $this->ensure_cachelock_available();
              return $this->cachelockinstance->check_state($key, $this->get_identifier());
          }
      }
code_tokens: public function check_lock_state ( $ key ) { $ key = $ this -> parse_key ( $ key ) ; if ( $ this -> nativelocking ) { return $ this -> get_store ( ) -> check_lock_state ( $ key , $ this -> get_identifier ( ) ) ; } else { $ this -> ensure_cachelock_available ( ) ; return $ this -> cachelockinstance -> check_state ( $ key , $ this -> get_identifier ( ) ) ; } }
docstring: Checks if this cache has a lock on the given key.
  
  @param string|int $key The key as given to get|set|delete
  @return bool|null Returns true if there is a lock and this cache has it, null if no one has a lock on that key, false if
  someone else has the lock.
docstring_tokens: Checks if this cache has a lock on the given key .