0
我使用火力地堡如下:火力地堡重置鍵
Post--
-Kwc6asRRI1SUqrigYeD <- First input
-> Date: 1:00pm
-> ID: 1
-> Content: Hello!
-Kwc6fXQsN2xIQtHOofZ
-> Date: 2:00pm
-> ID: 2
-> Content: How are you?
-Kwc6fXQsN2xRO39LDPD <-Most recent one
-> Date: 3:00pm
-> ID: 3
-> Content: I am good.
這些被「推送」,從而產生一個唯一的密鑰,其可用於根據"most recent to old"
(或ID:3
到ID:1
)顯示它們。
現在,當我需要更新數據,讓說ID:1
文章內容從"Hello"
到"My name is Steve"
,那麼它仍然保持着,即使這是最近的一個獨特的密鑰。
Post--
-Kwc6asRRI1SUqrigYeD <-Most recent one
-> Date: 4:00pm
-> ID: 1
-> Content: My name is Steve
-Kwc6fXQsN2xIQtHOofZ
-> Date: 2:00pm
-> ID: 2
-> Content: How are you?
-Kwc6fXQsN2xRO39LDPD
-> Date: 3:00pm
-> ID: 3
-> Content: I am good.
我想我可以刪除帖子並設置一個新的帖子,但這似乎效率低下,特別是如果我有更多的數據在每個孩子。
有沒有辦法重新設置密鑰,以便它反映時間變化(如下所示)?
Post--
-Kwc6fXQsN2xIQtHOofZ
-> Date: 2:00pm
-> ID: 2
-> Content: How are you?
-Kwc6fXQsN2xRO39LDPD
-> Date: 3:00pm
-> ID: 3
-> Content: I am good.
-Kwc6asRRI1KDodkeixk <-Most recent one
-> Date: 4:00pm
-> ID: 1
-> Content: My name is Steve
謝謝弗蘭克!非常感激。 –