diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-04-15 21:25:51 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-04-15 21:25:51 +0200 |
commit | 3c882ab5a145b0166611714131aa130386b287ab (patch) | |
tree | f92e76708df8ff785acf924a46272fa84f84cb93 /lib/feed2imap/cache.rb | |
parent | 78a3ec0d6ee2beb694c4169e673ef565aaa2fe5b (diff) | |
download | feed2imap-3c882ab5a145b0166611714131aa130386b287ab.tar.gz feed2imap-3c882ab5a145b0166611714131aa130386b287ab.tar.bz2 feed2imap-3c882ab5a145b0166611714131aa130386b287ab.zip |
More info for cleaning channels
Diffstat (limited to '')
-rw-r--r-- | lib/feed2imap/cache.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/feed2imap/cache.rb b/lib/feed2imap/cache.rb index 9c5977c..44af62c 100644 --- a/lib/feed2imap/cache.rb +++ b/lib/feed2imap/cache.rb @@ -91,6 +91,11 @@ class ItemCache Marshal.dump([@@cacheidx, @channels], io) end + # Keys of the channels + def channels + @channels.keys + end + # Return the number of channels in the cache def nbchannels @channels.length |