From 30bb6af8658d1522ed3452683425472d0569836f Mon Sep 17 00:00:00 2001 From: Robert Francis Date: Tue, 12 Mar 2019 12:22:21 +0000 Subject: [PATCH] Adds way for people following to test that their ets table is being created #1 --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 8921905..52ac60e 100644 --- a/README.md +++ b/README.md @@ -192,3 +192,19 @@ end Now if we start our application we will create an `ets` table, so let's give it a go. +As we are not currently doing anything with the data from our `ets` table we +will not be able to tell if it is working by just starting the app. We should +(and will) write tests to check it is working but for right now open your +terminal and type... +``` +iex -S mix +``` + +This will compile your application and start an interactive elixir shell. In +here type the following command... +``` +:ets.match_object(:store_cache, :_) +``` + +This will return a list of all the "stores" saved in the `ets` table. As you +can see you didn't have to do anything to be able to access this data 😁. \ No newline at end of file