Julia: Redis のデータを読む (Read)
redis_read.jl
#! /usr/bin/julia
#
# redis_read.jl
#
# Dec/28/2021
# --------------------------------------------------------------------
using Redis
using JSON
# --------------------------------------------------------------------
println(stderr,"*** 開始 ***")
#
conn = RedisConnection()
#
set_keys = keys(conn,"t*")
#
for kk in set_keys
str_json = get(conn, kk)
unit_aa = JSON.parse(str_json)
print(kk, '\t', unit_aa["name"])
print('\t',unit_aa["population"])
println('\t',unit_aa["date_mod"])
end
#
disconnect(conn)
#
println(stderr,"*** 終了 ***")
# --------------------------------------------------------------------
Author And Source
この問題について(Julia: Redis のデータを読む (Read)), 我々は、より多くの情報をここで見つけました https://qiita.com/ekzemplaro/items/7b0249c1a9029f8c6318著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .