你可以用:ets.whereis/1
.:undefined
如果指定的表不存在,它将返回:
iex(1)> :ets.new :foo, [:named_table]
:foo
iex(2)> :ets.whereis :foo
#Reference<0.2091350666.119668737.256142>
iex(3)> :ets.whereis :bar
:undefined
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
923 次 |
最近记录: |