text: #ifndef TCACHE_H
  #define TCACHE_H
  
  #include <TGlobal>
  
  class TCacheStore;
  
  
  class T_CORE_EXPORT TCache {
  public:
      TCache();
      ~TCache();
  
      bool set(const QByteArray &key, const QByteArray &value, int seconds);
      QByteArray get(const QByteArray &key);
      void remove(const QByteArray &key);
      void clear();
  
      static bool compressionEnabled();
  
  private:
      TCacheStore *_cache {nullptr};
      int _gcDivisor {0};
  
      T_DISABLE_COPY(TCache)
      T_DISABLE_MOVE(TCache)
  };
  
  #endif  // TCACHE_H
  