Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Does QT cache have persistence.
Forum Update on Monday, May 27th 2025

Does QT cache have persistence.

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 2 Posters 2.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Ganesh91771
    wrote on last edited by Ganesh91771
    #1

    Hi All,

    Can QT cache have persistence or else can we implement persistence in QT cache.

    Please suggest the cache methods which have persistence.

    jsulmJ 1 Reply Last reply
    0
    • G Ganesh91771

      Hi All,

      Can QT cache have persistence or else can we implement persistence in QT cache.

      Please suggest the cache methods which have persistence.

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Ganesh91771 What do you mean by "Qt cache"?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • G Offline
        G Offline
        Ganesh91771
        wrote on last edited by Ganesh91771
        #3

        @jsulm QT cache means using Qcache/QContiguousCache Class.
        Actually my need to implement a cache which have persistence. So can I achieve persistence using Qcache/QContiguousCache class?

        jsulmJ 1 Reply Last reply
        0
        • G Ganesh91771

          @jsulm QT cache means using Qcache/QContiguousCache Class.
          Actually my need to implement a cache which have persistence. So can I achieve persistence using Qcache/QContiguousCache class?

          jsulmJ Online
          jsulmJ Online
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Ganesh91771 QCache/QContigousCache are not persistent. But you can implement reading/writing from/to files by yourself.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • G Offline
            G Offline
            Ganesh91771
            wrote on last edited by
            #5

            Thank you @jsulm . Can you please suggest any other cache methods for c++ (should be embedded)
            which have persistence in built.

            jsulmJ 1 Reply Last reply
            0
            • G Ganesh91771

              Thank you @jsulm . Can you please suggest any other cache methods for c++ (should be embedded)
              which have persistence in built.

              jsulmJ Online
              jsulmJ Online
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Ganesh91771 No, I don't know any. But you can use QCache and add writing/reading to/from files or database by yourself to make it persistent. See http://doc.qt.io/qt-5/topics-data-storage.html

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              1
              • G Offline
                G Offline
                Ganesh91771
                wrote on last edited by
                #7

                @jsulm Thank you :)

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved