hara.lang.type-shared

*groups*

dynamic

get-group-count

added in 4.0

(get-group-count)(get-group-count type & [id])

gets the group count for a type and id

(shared/get-group-count :hara/rt.redis) ;; {:default 21, :test 2} => map?

get-group-instance

added in 4.0

(get-group-instance type id)

gets the group instance

get-groups

added in 4.0

(get-groups)

gets all shared groups

(shared/get-groups) ;; (:hara/rt.postgres :hara/rt.redis :hara/rt.nginx :hara/rt.cpython.shared :hara/rt.luajit.shared) => vector?

kill-shared

remove-group-instance

added in 4.0

(remove-group-instance type id)

removes the group instance

restart-group-instance

added in 4.0

(restart-group-instance type id)

restarts the group instance

rt-get-inner

added in 4.0

(rt-get-inner rt)

gets the inner runtime

rt-is-shared?

added in 4.0

(rt-is-shared? obj)

checks if a runtime is shared

rt-shared

added in 4.0

(rt-shared m)

creates and starts and shared runtime client

rt-shared:create

added in 4.0

(rt-shared:create {:rt/keys [id client temp], :as m})

creates a shared runtime client

set-group-instance

added in 4.0

(set-group-instance type id instance & [count config client])

sets the group instance

start-shared

added in 4.0

(start-shared {:keys [id client temp config], :as rt})

starts a shared runtime client

stop-shared

added in 4.0

(stop-shared {:keys [id client temp config], :as rt})

stops a shared runtime client

update-group-count

added in 4.0

(update-group-count type id f)

updates the group counte

update-group-instance

added in 4.0

(update-group-instance type id f)

updates the group instance

wrap-shared