w10schools
Login Register
  • Home
  • Tutorials
    • HTML, CSS
      • HTML, HTML5
      • CSS, CSS3
    • XML
    • JavaScript, AJAX
    • PHP
    • Ruby on Rails
      • Ruby
      • Rails
    • ASP.NET
      • ASP
      • C# .NET
    • Java
      • JSP
    • Databases
      • MySQL
      • MSSQL Server
      • Oracle
    • Web Server
      • Windows
      • Linux
      • Apache
      • IIS
    • Design
      • Dreamweaver
      • Flash
      • Photoshop
      • Fireworks
      • CorelDRAW
      • Illustrator
  • References
    • HTML
      • Bootstrap
    • CSS
      • CSS Selectors
      • Sass
    • JavaScript
    • Mobile Apps
      • Cordova
    • Ruby on Rails
      • Ruby
      • Rails
    • PHP
      • Function
      • Language
      • CodeIgniter
      • Phalcon
      • PHPUnit
      • Symfony
      • Drupal
      • Yii
      • Laravel
    • Perl
      • Perl
    • Python
      • Python
      • Django
      • NumPy
      • Pandas
      • scikit-image
      • scikit-learn
      • Statsmodels
      • Matplotlib
    • Lua
      • Lua
    • C, C++
      • C
      • C++
    • Server
      • Docker
      • Apache HTTP Server
      • Nginx
    • Database
      • PostgreSQL
    • Big Data
      • TensorFlow
    • Game Development
      • Phaser
      • LÖVE
  • Articles
    • News
    • General
      • Website Promotion
      • Online Advertising
      • Make Money Online
    • Editorials
    • Interviews
    • Web Roundups
  • Resources
    • Design
      • Fonts
      • Graphics
      • Vectors
      • Templates
      • UI (User Interface)
      • Brushes
      • Patterns, Backgrounds
      • Textures
    • Web Development
      • HTML, CSS
      • XML
      • JavaScript, AJAX
      • Ruby on Rails
      • PHP
      • Java
      • .NET
      • Python
      • Perl
      • Flash
    • Mobile Application Development
      • Mobile Development Tools
      • Swift
    • Online Services
      • Online Storage
      • Web Hosting
  • Tools
    • Generators
Edit
In Place Editing Advanced Editing
  • References
  • PHP
  • CodeIgniter
  • Caching

CI_Cache::delete()

delete($id)

Parameters:
  • $id (string) – name of cached item
Returns:

TRUE on success, FALSE on failure

Return type:

bool

This method will delete a specific item from the cache store. If item deletion fails, the method will return FALSE.

$this->cache->delete('cache_item_id');
Links:
  • http://www.codeigniter.com/user_guide/libraries/caching.html#CI_Cache::delete
doc_CodeIgniter
doc_CodeIgniter
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.

Popular Articles
CI_Cache class CI_Cache is_supported($driver) Parameters: $driver (string) – the name of the caching driver Returns: TRUE if supported, FALSE if not
CI_DB_driver::cache_delete() cache_delete([$segment_one = ''[, $segment_two = '']]) Parameters: $segment_one (string) – First URI segment $segment_two (string) – Second URI
caching\Cache delete() delete() public method Deletes a value with the specified key from cache public boolean delete ( $key )$key mixed A key identifying the value
CI_Cache::cache_info() cache_info() Returns: Information on the entire cache database Return type: mixed This method will return information on the entire cache. var_d
CI_Cache::increment() increment($id[, $offset = 1]) Parameters: $id (string) – Cache ID $offset (int) – Step/value to add Returns: New value on success, FALSE on f


Return to View
  • Facebook
  • Tweet
  • Digg it
  • Stumbleupon
  • Delicious
  • Plus Share

Designed by : w10schools

service@w10schools.com

Our Partners: aeeble – Providing content publishing and search solutions